posts_join filter-hook . WP 1.5.0
Filters the JOIN clause of the query.
Usage
add_filter( 'posts_join', 'filter_function_name_4761', 10, 2 ); function filter_function_name_4761( $join, $this ){ // filter... return $join; }
- $join(string)
- The JOIN clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Changelog
Since 1.5.0 | Introduced. |
Where the hook is called
posts_join
wp-includes/class-wp-query.php 2573
$join = apply_filters_ref_array( 'posts_join', array( $join, &$this ) );