WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Filter Reference/posts search

Description

Since version 3.0.0, the posts_search filter is used to filter the search SQL that is used in the WHERE clause of WP_Query.

Triggers

This function is applied once, in wp-includes/query.php - in get_posts() on line 2485.

This page is marked as incomplete. You can help Codex by expanding it.