Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created May 9, 2015 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaiderella/a7101605ecb2704cf637 to your computer and use it in GitHub Desktop.
Save Kaiderella/a7101605ecb2704cf637 to your computer and use it in GitHub Desktop.
Verify get nonce
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