Tribe__Repository__Query_Filters::join( string $join_clause, null|string $id = null, boolean $override = false )
Add a custom JOIN clause to the query.
Contents
Parameters
- $join_clause
-
(string) (Required) JOIN clause.
- $id
-
(null|string) (Optional) JOIN ID to prevent duplicating joins.
Default value: null
- $override
-
(boolean) (Optional) Whether to override the clause if a JOIN by the same ID exists.
Default value: false
Source
File: src/Tribe/Repository/Query_Filters.php
public function join( $join_clause ) {
$this->query_vars['join'][] = $join_clause;
if ( ! has_filter( 'posts_join', array( $this, 'filter_posts_join' ) ) ) {
add_filter( 'posts_join', array( $this, 'filter_posts_join' ), 10, 2 );
}
}
Changelog
| Version | Description |
|---|---|
| 4.7.19 | Introduced. |