Protéger sa page d’option
Posted by djudorange - 27/04/10 at 11:04:17Lorsque l’on créer une page d’option pour son plugin, il faut la protéger.
Et donc, il faut insérer dans la fonction qui va afficher la page, ce qui suit:
dans le template même:
<?php wp_nonce_field('simple-option');?>
et dans la fonction d’enregistrement de l’option:
check_admin_referer( 'simple-option' );
avril 27, 2010 | In Fontions WordPress | No Comments
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.