title: How to pass input value inside filter function in Wordpress?
body: <p>I have an issue with filter hook function,</p>
  
  <p>So I have a form with input type number which I show in my template:</p>
  
  <pre><code>if( isset($_GET['submit']) ) {
      $my_text = esc_attr($_GET['my_text']);
  }
  ?&gt;
      &lt;form id="my-form" method="get"&gt;
          &lt;input id="my_text" type="text" name="my_text" value="&lt;?php echo $my_text; ?&gt;" /&gt;
          &lt;input type="submit" name="submit" value="search"&gt;
      &lt;/form&gt;
  &lt;?php
  </code></pre>
  
  <p>So now I want when user type a text in this input and click submit button, the value should be passed inside my filter hook function:</p>
  
  <pre><code>function _themename_excerpt_more() {
      return 'here should be a value from input';
  }
  
  add_filter( 'excerpt_more', '_themename_excerpt_more' );
  </code></pre>
  
  <p>Is it possible? I can't find out right answers.
  Thanks in advance!</p>