Created
May 9, 2015 01:17
-
-
Save Kaiderella/0c0bf23622ac22bd0b3b to your computer and use it in GitHub Desktop.
WordPress nonces URL
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
$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