Filters the meta query’s generated SQL.
$sqlstring[]
$queriesarray
$typestring
'post', 'comment', 'blog', 'term', and 'user'.$primary_tablestring
$primary_id_columnstring
$contextobject
WP_Query, WP_User_Query, or WP_Site_Query.return apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context ) );
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_meta_sql