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