• Resolved lxg

    (@mastermind)


    In the searchform.php of the default template and in many other templates, the search request is returned to the search form with the variable $s.

    I would like to change its value within a plugin, but I couldn’t seem to find out where it is set. It seems not to be $_GET[‘s’] and not $wp_query->query_vars[‘s’].

    Does somebody have an idea where that $s comes from?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variable $s in searchform.php’ is closed to new replies.