How to intercept $_GET and modify it before search happen?
-
I’m trying to create an advanced search page (with dropdowns and checkboxes). The only issue I’m having is that I cannot get more than one checkbox value to be sent to the search… so I figure that I can fix this by passing the values in the checkboxes via an array (which I do have working) but I need to intercept those values and modify them for the $_GET call to the search page BEFORE the search happens.
How do I do this? All of the stuff I’ve found simply does things AFTER the search takes place:
– calling a function on the action wp_head
– adding a filter pre_get_posts (not sure why this one isn’t working for me, seems like it should)Any suggestions?
- The topic ‘How to intercept $_GET and modify it before search happen?’ is closed to new replies.