[wp-hackers] Filter search query before execution

scribu scribu at gmail.com
Wed Sep 15 17:04:42 UTC 2010


On Wed, Sep 15, 2010 at 7:38 PM, Ryan Bilesky <rbilesky at gmail.com> wrote:

> Now here's the problem, I looked at the filter reference on codex and I
> could not find a filter for this purpose.  Am I missing something?  What
> would be the best way to accomplish this, and I am not opposed to hacking
> the core if need be.
>

Filter references are usually outdated. Solution: browse the source code.
You will find the posts_search filter in WP_Query.

-- 
http://scribu.net


More information about the wp-hackers mailing list