found_posts_query WordPress Filter Hook
The found_posts_query hook is triggered when a search is performed on a WordPress site. It allows developers to modify the SQL query used to search the WordPress database. This hook is useful for creating a custom search engine or for optimizing the search results displayed on a WordPress site.
apply_filters_ref_array( 'found_posts_query', string $found_posts_query , WP_Query $query ) #
Filters the query to run for retrieving the found posts.
Parameters
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |