W3cubDocs

/WordPress

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

Filters the meta query’s generated SQL.

Parameters

$sql

(array) Array containing the query's JOIN and WHERE clauses.

$queries

(array) Array of meta queries.

$type

(string) Type of meta.

$primary_table

(string) Primary table.

$primary_id_column

(string) Primary column ID.

$context

(object) The main query object.

Source

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

View on Trac

Changelog

Version Description
3.1.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_meta_sql