title: Send $_POST data to custom Wordpress plugin
body: <p>I have a custom Wordpress plugin that handles many things including download pages for my products.  The links are not the path to the actual PHP page to my plugin.  For example...</p>
  
  <pre><code>http://myurl.com/download/product
  </code></pre>
  
  <p>But the path to my plugin that actually handles the download function is this path:</p>
  
  <pre><code>http://myurl.com/wp-content/plugins/myplugin/myplugin.php
  </code></pre>
  
  <p>I have built an app that uses these download links to grant a user the ability to download a product after purchase.  But now I need to send extra data along with the url.  How can I send some additional $_POST data when the users click on the download link.  I have tried</p>
  
  <pre><code>http://myurl.com/download/product?id=2345&amp;user=tom
  </code></pre>
  
  <p>But when I try to echo out the variables in myplugin.php I get nothing.   </p>
  
  <pre><code>echo $_GET['id'];
  
  echo $_GET['user'];
  </code></pre>
  
  <p>I have also tried to use a form and send hidden inputs but still the same result.  </p>
  
  <p>Any help would be greatly appreciated.  </p>