taxonomy_labels_category
Filters the labels of a specific taxonomy.
Это один из вариантов динамического хука taxonomy_labels_(taxonomy)
Использование
add_filter( 'taxonomy_labels_category', 'wp_kama_taxonomy_labels_category_filter' );
/**
* Function for `taxonomy_labels_category` filter-hook.
*
* @param object $labels Object with labels for the taxonomy as member variables.
*
* @return object
*/
function wp_kama_taxonomy_labels_category_filter( $labels ){
// filter...
return $labels;
}
- $labels(объект)
- Object with labels for the taxonomy as member variables.
Список изменений
| С версии 4.4.0 | Введена. |
Где вызывается хук
wp-includes/taxonomy.php 749
$labels = apply_filters( "taxonomy_labels_{$taxonomy}", $labels );