Skip to content

Instantly share code, notes, and snippets.

@Oceas

Oceas/validator Secret

Created September 25, 2020 14:16
Show Gist options
  • Save Oceas/de9a76d61da45fddeea17a9236d2d0f0 to your computer and use it in GitHub Desktop.
Save Oceas/de9a76d61da45fddeea17a9236d2d0f0 to your computer and use it in GitHub Desktop.
if ( ! isset( $_POST['support-nonce'] ) || ! wp_verify_nonce( $_POST['support-nonce'], 'support_form' ) ) {
// Form not safe abort.
return;
}
// Form is safe proceed with regular logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment