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.
Source
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |