How to change the wordpress header request

Posted by Joseph Carrington on Stack Overflow See other posts from Stack Overflow or by Joseph Carrington
Published on 2010-04-08T21:19:27Z Indexed on 2010/04/08 21:23 UTC
Read the original article Hit count: 217

Filed under:

Let us say that I have a form to search by multiple tags in wordpress.

<input type="checkbox" name="my_tags[]" value="tag1" />
<input type="checkbox" name="my_tags[]" value="tag2" />

I want to make it so that when my plugin sees that my_tags[] is set, it rewrites the request to say

mysite.com/?tag=tag1+tag2

I know to use add_query_arg to put in the tag, and to use the query_vars filters to allow my arguments to be sent, but what do i hook into to get the arguments that were sent after the request, but before wp parses the request?

© Stack Overflow or respective owner

Related posts about Wordpress