Codex tools: Log in / create account
Contents |
Creates a random, one time use token.
<?php $nonce= wp_create_nonce ('my-nonce'); ?>
<a href='myplugin.php?_wpnonce=<?php echo $nonce ?>'> ...
<?php
$nonce=$_REQUEST['_wpnonce'];
if (! wp_verify_nonce($nonce, 'my-nonce') ) die('Security check');
?>