apply_filters( 'meta_query_find_compatible_table_alias', string|false $alias, array $clause, array $parent_query, WP_Meta_Query $query )
- Since
- 4.1.0
Filters the table alias identified as compatible with the current clause.
Compatibility
- WordPress
- since 4.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$aliasstring|false- Table alias, or false if none was found.
$clausearray- First-order query clause.
$parent_queryarray- Parent of $clause.
$queryWP_Meta_Query- WP_Meta_Query object.
Where this hook fires · 1
wp-includes/class-wp-meta-query.php:873WP_Meta_Query::find_compatible_table_alias()
Source code
* * @param string|false $alias Table alias, or false if none was found. * @param array $clause First-order query clause. * @param array $parent_query Parent of $clause. * @param WP_Meta_Query $query WP_Meta_Query object. */ return apply_filters( 'meta_query_find_compatible_table_alias', $alias, $clause, $parent_query, $this ); } /** * Checks whether the current query has any OR relations. * * In some cases, the presence of an OR relation somewhere in the query will requireChangelog
Introduced in 4.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.