Filters the taxonomy used to retrieve terms when calling get_categories() .
Parameters
$taxonomy
string- Taxonomy to retrieve terms from.
$args
array- 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. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.