taxonomy_labels_(taxonomy)
Filters the labels of a specific taxonomy.
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
Usage
add_filter( 'taxonomy_labels_(taxonomy)', 'wp_kama_taxonomy_labels_filter' ); /** * Function for `taxonomy_labels_(taxonomy)` filter-hook. * * @param object $labels Object with labels for the taxonomy as member variables. * * @return object */ function wp_kama_taxonomy_labels_filter( $labels ){ // filter... return $labels; }
- $labels(object)
- Object with labels for the taxonomy as member variables.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
wp-includes/taxonomy.php 749
$labels = apply_filters( "taxonomy_labels_{$taxonomy}", $labels );