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