taxonomy_labels_{$taxonomy} WordPress Filter Hook
The taxonomy_labels_{$taxonomy} hook is used to filter the labels for a given taxonomy. This can be useful for customizing the labels for a custom taxonomy.
apply_filters( "taxonomy_labels_{$taxonomy}", object $labels ) #
Filters the labels of a specific taxonomy.
Description
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
taxonomy_labels_categorytaxonomy_labels_post_tag
See also
- get_taxonomy_labels(): for the full list of taxonomy labels.
Parameters
- $labels
(object)Object with labels for the taxonomy as member variables.
Source
File: wp-includes/taxonomy.php
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |