posts_join_paged
Filters the JOIN clause of the query.
Specifically for manipulating paging queries.
Usage
add_filter( 'posts_join_paged', 'wp_kama_posts_join_paged_filter' );
/**
* Function for `posts_join_paged` filter-hook.
*
* @param string $join The JOIN clause of the query.
*
* @return string
*/
function wp_kama_posts_join_paged_filter( $join ){
// filter...
return $join;
}
- $join(string)
- The JOIN clause of the query.
Changelog
| Since 1.5.0 | Introduced. |
Where the hook is called
posts_join_paged
wp-includes/class-wp-query.php 2957
$join = apply_filters_ref_array( 'posts_join_paged', array( $join, &$this ) );