Glossary Term
get_meta_sql()
get_meta_sql() — Given a meta query, generates SQL clauses to be appended to a main query.
Inputs: $meta_query (array): A meta query. $type (string): Type of meta. $primary_table (string): Primary database table name. $primary_id_column (string): Primary ID column name. $context (object): Optional. The main query object. Default null.
Returns string[]|false: Array containing JOIN and WHERE SQL clauses to append to the main query, or false if no table exists for the requested meta type. Field $join (string): SQL fragment to append to the main JOIN clause. Field $where (string): SQL fragment to append to the main WHERE clause.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
