WordPress at a glance
filter is not described

get_meta_sql filter-hook . WP 3.1.0

Filters the meta query's generated SQL.

Usage

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

	return $sql;
}
$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.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WordPress

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