apply_filters( 'terms_clauses', string[] $clauses, string[] $taxonomies, array $args )

Filters the terms query SQL clauses.


Parameters

$clauses

Associative array of the clauses for the query.<br>

  • 'fields'
    (string) The SELECT clause of the query.<br>
  • 'join'
    (string) The JOIN clause of the query.<br>
  • 'where'
    (string) The WHERE clause of the query.<br>
  • 'distinct'
    (string) The DISTINCT clause of the query.<br>
  • 'orderby'
    (string) The ORDER BY clause of the query.<br>
  • 'order'
    (string) The ORDER clause of the query.<br>
  • 'limits'
    (string) The LIMIT clause of the query.<br>

$taxonomies

An array of taxonomy names.

$args

An array of term query arguments.


Source

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

View on GitHub



Changelog

Changelog
Version Description
3.1.0 Introduced.