list_cats хук-фильтрWP 1.0

This filter is documented in wp-includes/category-template.php

Использование

add_filter( 'list_cats', 'wp_kama_list_cats_filter', 10, 2 );
function wp_kama_list_cats_filter( $esc_attr, $category ){
	// filter...

	return $esc_attr;
}
$esc_attr
-
$category
-

Где вызывается хук

Walker_Category::start_el()
list_cats
wp_dropdown_categories()
list_cats
Walker_CategoryDropdown::start_el()
list_cats
wp-includes/class-walker-category.php 106
$cat_name = apply_filters( 'list_cats', esc_attr( $category->name ), $category );
wp-includes/category-template.php 427
$show_option_none = apply_filters( 'list_cats', $parsed_args['show_option_none'], null );
wp-includes/category-template.php 436
$show_option_all = apply_filters( 'list_cats', $parsed_args['show_option_all'], null );
wp-includes/category-template.php 444
$show_option_none = apply_filters( 'list_cats', $parsed_args['show_option_none'], null );
wp-includes/class-walker-category-dropdown.php 65
$cat_name = apply_filters( 'list_cats', $category->name, $category );

Где используется хук в WordPress

wp-includes/default-filters.php 203
add_filter( 'list_cats', 'wptexturize' );