A WordPress-centric search engine for devs and theme authors



get_meta_sql ›

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)
  • (array) $clauses Array containing the query's JOIN and WHERE clauses.
    Required: Yes
  • (array) $queries Array of meta queries.
    Required: Yes
  • (string) $type Type of meta.
    Required: Yes
  • (string) $primary_table Primary table.
    Required: Yes
  • (string) $primary_id_column Primary column ID.
    Required: Yes
  • (object) $context The main query object.
    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 ) );