meta_query_find_compatible_table_alias WordPress Filter Hook

The meta_query_find_compatible_table_alias hook is used to determine which table to use when querying for a particular meta key. This is useful for plugins that need to query meta data from multiple tables.

apply_filters( 'meta_query_find_compatible_table_alias', string|false $alias, array $clause, array $parent_query, WP_Meta_Query $query ) #

Filters the table alias identified as compatible with the current clause.


Parameters

$alias

(string|false)Table alias, or false if none was found.

$clause

(array)First-order query clause.

$parent_query

(array)Parent of $clause.

$query

(WP_Meta_Query)WP_Meta_Query object.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.