wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_terms_fields › WordPress Filter Hooks

Da2.8.0
Deprecaton/a
› apply_filters( 'get_terms_fields', $selects, $args, $taxonomies )
Parametri: (3)
  • () selects An array of fields to select for the terms query.
    Richiesto: Sì
  • () args An array of term query arguments.
    Richiesto: Sì
  • () taxonomies An array of taxonomy names.
    Richiesto: Sì
Definito a:
Codex:

Filters the fields to select in the terms query.

Field lists modified using this filter will only modify the term fields returned by the function when the `$fields` parameter set to 'count' or 'all'. In all other cases, the term fields in the results array will be determined by the `$fields` parameter alone. Use of this filter can result in unpredictable behavior, and is not recommended.




Sorgenti

$fields = implode( ', ', apply_filters( 'get_terms_fields', $selects, $args, $taxonomies ) );