Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created May 9, 2015 01:07
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/4bee1581546b3cde2dd7 to your computer and use it in GitHub Desktop.
Save Kaiderella/4bee1581546b3cde2dd7 to your computer and use it in GitHub Desktop.
Xác minh nonce
if ( ! isset( $_POST['field_name'] ) || ! wp_verify_nonce( $_POST['field_name'], 'action_name' )
) {
// 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