Created
May 9, 2015 01:21
-
-
Save Kaiderella/a7101605ecb2704cf637 to your computer and use it in GitHub Desktop.
Verify get nonce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! isset( $_GET['_mynonce'] ) || ! wp_verify_nonce( $_GET['_mynonce'], 'delete-post-' . $_GET['p'] ) | |
) { | |
// Do something if the nonce does not verify | |
exit(); | |
} | |
// Process your form |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment