Filters the JOIN clause of the query.
Parameters
Source
$join = apply_filters_ref_array( 'posts_join', array( $join, &$this ) );
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |
Filters the JOIN clause of the query.
$join = apply_filters_ref_array( 'posts_join', array( $join, &$this ) );
Version | Description |
---|---|
1.5.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
To include the required tables in the query use the
posts_join
filter.The below example adds a meta field for use in displaying search results.
And then the specific search: