apply_filters_ref_array( 'get_meta_sql', string[] $sql, array $queries, string $type, string $primary_table, string $primary_id_column, object $context )

Filters the meta query’s generated SQL.



(string[]) Array containing the query's JOIN and WHERE clauses.


(array) Array of meta queries.


(string) Type of meta. Possible values include but are not limited to 'post', 'comment', 'blog', 'term', and 'user'.


(string) Primary table.


(string) Primary column ID.


(object) The main query object that corresponds to the type, for example a WP_Query, WP_User_Query, or WP_Site_Query.

Top ↑


File: wp-includes/class-wp-meta-query.php

View on Trac

Top ↑


Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.