wpseek.com
A WordPress-centric search engine for devs and theme authors



get_meta_sql › WordPress Filter Hooks

Since3.1.0
Deprecatedn/a
apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context )
Parameters: (6)
  • (string[]) $sql Array containing the query's JOIN and WHERE clauses.
    Required: Yes
  • (array) $queries Array of meta queries.
    Required: Yes
  • (string) $type Type of meta. Possible values include but are not limited to 'post', 'comment', 'blog', 'term', and 'user'.
    Required: Yes
  • (string) $primary_table Primary table.
    Required: Yes
  • (string) $primary_id_column Primary column ID.
    Required: Yes
  • (object) $context The main query object that corresponds to the type, for example a `WP_Query`, `WP_User_Query`, or `WP_Site_Query`.
    Required: Yes
Defined at:
Codex:

Filters the meta query's generated SQL.





Source

return apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context ) );