Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created May 9, 2015 01:17
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/0c0bf23622ac22bd0b3b to your computer and use it in GitHub Desktop.
Save Kaiderella/0c0bf23622ac22bd0b3b to your computer and use it in GitHub Desktop.
WordPress nonces URL
$delete_link = wp_get_shortlink( get_the_ID() ) . '&delete=true';
$nonced_link = wp_nonce_url( $delete_link, 'delete-post-' . get_the_ID(), '_mynonce' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment