File: wp-includes/class-wp-meta-query.php
-
Checks whether the current query has any OR relations.
-
Gets a flattened list of sanitized meta clauses.
-
Identifies an existing table alias that is compatible with the current query clause.
-
Filters the table alias identified as compatible with the current clause.
-
Generates SQL JOIN and WHERE clauses for a first-order query clause.
-
Ensures the ‘meta_query’ argument passed to the class constructor is well-formed.
-
Determines whether a query clause is first-order.
-
Generates SQL clauses to be appended to a main query.
-
Generates SQL clauses for a single query array.
-
classWP_Meta_Query
Core class used to implement meta queries for the Meta API.
-
Constructor.
-
Constructs a meta query based on ‘meta_*’ query vars
-
Returns the appropriate alias for the given meta type if applicable.
-
methodWP_Meta_Query::get_sql()
Generates SQL clauses to be appended to a main query.
-
hookget_meta_sql
Filters the meta query’s generated SQL.