Skip to content

Instantly share code, notes, and snippets.

@ryanhellyer
Created October 21, 2012 12:41
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 ryanhellyer/3926867 to your computer and use it in GitHub Desktop.
Save ryanhellyer/3926867 to your computer and use it in GitHub Desktop.
nonce URLs
<?php
$link = home_url();
$link = wp_nonce_url( $link, 'random_nonce_name' );
?>
<a href="<?php echo $link; ?>">link</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment