Filters the search SQL that is used in the WHERE clause of WP_Query.
Parameters
Source
$search = apply_filters_ref_array( 'posts_search', array( $search, &$this ) );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Filters the search SQL that is used in the WHERE clause of WP_Query.
$search = apply_filters_ref_array( 'posts_search', array( $search, &$this ) );
Version | Description |
---|---|
3.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Example function search by title only: