title: Reload wordpress page if button is clicked
body: <p>I'm trying to refresh the WordPress page with a <code>input=&quot;button&quot;</code>.</p>
  <pre><code>echo '&lt;input type=&quot;button&quot; name=&quot;refresh&quot; id=&quot;refresh&quot; value=&quot;Refresh&quot;/&gt;';
  </code></pre>
  <p>I've tried with...</p>
  <pre><code>onClick=&quot;' . header(&quot;Refresh:0&quot;) . '&quot;
  </code></pre>
  <p>This just makes the page reload without the button being clicked and with...</p>
  <pre><code>if ( isset( $_POST['refresh'] )) {
          header(&quot;Refresh:0&quot;);
  }
  </code></pre>