posts_where_request WordPress Filter Hook
The posts_where_request hook is a WordPress hook that allows developers to alter the WHERE clause of the SQL query that WordPress uses to retrieve posts from the database. This hook is useful for customizing the behavior of WordPress queries, for example, to only retrieve posts that are published in a certain language.
apply_filters_ref_array( 'posts_where_request', string $where , WP_Query $query ) #
Filters the WHERE clause of the query.
Description
For use by caching plugins.
Parameters
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |