taxonomy_labels_post_tag
Filters the labels of a specific taxonomy.
This is one of the variants of the dynamic hook taxonomy_labels_(taxonomy)
Usage
add_filter( 'taxonomy_labels_post_tag', 'wp_kama_taxonomy_labels_post_tag_filter' );
/**
* Function for `taxonomy_labels_post_tag` filter-hook.
*
* @param object $labels Object with labels for the taxonomy as member variables.
*
* @return object
*/
function wp_kama_taxonomy_labels_post_tag_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 );