WordPress.org

Ready to get started?Download WordPress

Forums

Modify query_vars (1 post)

  1. ligio
    Member
    Posted 5 years ago #

    Hi,
    I want to filter wp_query->query_vars["s"] because I need to adjust the search variable before I will utilize it with get_query_var("s").

    I need something like wp_query->query_vars["s"] = strip_tags($_GET["s"]);

    What's the right hook to filter query variables ?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic