get_terms_defaults WordPress Filter Hook

The get_terms_defaults WordPress hook is used to set the default values for the get_terms() function. This function is used to retrieve the terms in a given taxonomy.

apply_filters( 'get_terms_defaults', array $defaults, string[] $taxonomies ) #

Filters the terms query default arguments.


Description

Use ‘get_terms_args’ to filter the passed arguments.


Top ↑

Parameters

$defaults

(array)An array of default get_terms() arguments.

$taxonomies

(string[])An array of taxonomy names.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.