posts_where_request
Filters the WHERE clause of the query.
For use by caching plugins.
Usage
add_filter( 'posts_where_request', 'wp_kama_posts_where_request_filter' ); /** * Function for `posts_where_request` filter-hook. * * @param string $where The WHERE clause of the query. * * @return string */ function wp_kama_posts_where_request_filter( $where ){ // filter... return $where; }
- $where(string)
- The WHERE clause of the query.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
posts_where_request
wp-includes/class-wp-query.php 2992
$where = apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) );