W3cubDocs

/WordPress

apply_filters( ‘get_categories_taxonomy’, string $taxonomy, array $args )

Filters the taxonomy used to retrieve terms when calling get_categories() .

Parameters

$taxonomystring
Taxonomy to retrieve terms from.
$argsarray
An array of arguments. See get_terms() .
More Arguments from get_terms( … $args )Array or string of arguments. See WP_Term_Query::__construct() for information on accepted arguments.

Source

$args['taxonomy'] = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args );

Changelog

Version Description
2.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_categories_taxonomy