WordPress at a glance
filter is not described

get_meta_sql filter-hook . WP 3.1.0

Filters the meta query's generated SQL.


add_filter( 'get_meta_sql', 'filter_function_name_5729', 10, 6 );
function filter_function_name_5729( $sql, $queries, $type, $primary_table, $primary_id_column, $context ){
	// filter...

	return $sql;
Array containing the query's JOIN and WHERE clauses.
Array of meta queries.
Type of meta.
Primary table.
Primary column ID.
The main query object.

Where the hook is called

wp-includes/class-wp-meta-query.php 349
return apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context ) );

Where the hook is used (in WP core)

Использование не найдено.