apply_filters_ref_array( 'get_meta_sql', string[] $sql , array $queries , string $type , string $primary_table , string $primary_id_column , object $context )
Filters the meta query’s generated SQL.
Parameters
- $sql
-
Array containing the query's JOIN and WHERE clauses.
- $queries
-
Array of meta queries.
- $type
-
Type of meta. Possible values include but are not limited to 'post', 'comment', 'blog', 'term', and 'user'.
- $primary_table
-
Primary table.
- $primary_id_column
-
Primary column ID.
- $context
-
The main query object that corresponds to the type, for example a
WP_Query
,WP_User_Query
, orWP_Site_Query
.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |