get_terms_args WordPress Filter Hook

The get_terms_args hook is used to modify the arguments used in a terms query. This hook is used mainly by plugins and themes that need to filter terms by custom taxonomies or fields.

apply_filters( 'get_terms_args', array $args, string[] $taxonomies ) #

Filters the terms query arguments.


Parameters

$args

(array)An array of 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
3.1.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.