wordpress - extract value of variable for href tag

I’m trying to figure out how to grab and pass the value of a php variable to an href tag. I’m working with a wordpress plugin. Here’s a section of the code. The variable I only want the VALUE out of is “wpnonce”:


Click HERE

When [+wpnonce+] processes, however, it spits this out:

So… my href tag looks like this:
<a class='button-secondary’href=“http://www.blahblah.com/wp-admin/upload.php?page=enable-media-replace%2Fenable-media-replace.php&action=media_replace&attachment_id=[+ID+]&_wpnonce=”>Click HERE

I only want the value to return (in this case “4b0c4dd704”).

How would I form my href statement, so that I get this:
<a class='button-secondary’href=“http://www.blahblah.com/wp-admin/upload.php?page=enable-media-replace%2Fenable-media-replace.php&action=media_replace&attachment_id=[+ID+]&_wpnonce=4b0c4dd704”>Click HERE

I’ve tried several things to have [+wpnonce+] spit out on the value - ie [+wpnonce.value+], etc, etc

have you tried using
[php]<?php $value=$_GET["_wpnonce"];?>[/php]
to retrieve your value?

Sponsor our Newsletter | Privacy Policy | Terms of Service