terms_clauses хук-фильтр . WP 3.1.0
Filters the terms query SQL clauses.
Использование
add_filter( 'terms_clauses', 'filter_function_name_608', 10, 3 ); function filter_function_name_608( $pieces, $taxonomies, $args ){ // filter... return $pieces; }
- $pieces(строка[])
- Array of query SQL clauses.
- $taxonomies(строка[])
- An array of taxonomy names.
- $args(массив)
- An array of term query arguments.
Список изменений
С версии 3.1.0 | Введена. |
Где вызывается хук
wp-includes/class-wp-term-query.php 667
$clauses = apply_filters( 'terms_clauses', compact( 'fields', 'join', 'where', 'distinct', 'orderby', 'order', 'limits' ), $taxonomies, $args );