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

Filters the terms query SQL clauses.


Parameters

$clauses string[]
Associative array of the clauses for the query.
  • fieldsstring
    The SELECT clause of the query.
  • joinstring
    The JOIN clause of the query.
  • wherestring
    The WHERE clause of the query.
  • distinctstring
    The DISTINCT clause of the query.
  • orderbystring
    The ORDER BY clause of the query.
  • orderstring
    The ORDER clause of the query.
  • limitsstring
    The LIMIT clause of the query.
$taxonomies string[]
An array of taxonomy names.
$args array
An array of term query arguments.

Top ↑

Source

File: wp-includes/class-wp-term-query.php. View all references

$clauses = apply_filters( 'terms_clauses', compact( $clauses ), $taxonomies, $args );


Top ↑

Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.