the_category хук-фильтр . WP 1.0
This filter is documented in wp-includes/category-template.php
Использование
add_filter( 'the_category', 'filter_function_name_1273', 10, 3 ); function filter_function_name_1273( $string, $separator, $parents ){ // filter... return $string; }
- $string
- -
- $separator
- -
- $parents
- -
Где вызывается хук
the_category
the_category
the_category
the_category
wp-includes/category-template.php 145
return apply_filters( 'the_category', '', $separator, $parents );
wp-includes/category-template.php 161
return apply_filters( 'the_category', __( 'Uncategorized' ), $separator, $parents );
wp-includes/category-template.php 229
return apply_filters( 'the_category', $thelist, $separator, $parents );
wp-admin/includes/class-walker-category-checklist.php 103
esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</div>';
wp-admin/includes/class-walker-category-checklist.php 113
esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</label>';
wp-admin/includes/template.php 246
echo esc_html( apply_filters( 'the_category', $term->name, '', '' ) );
wp-admin/includes/template.php 294
$name = esc_html( apply_filters( 'the_category', $category->name, '', '' ) );
wp-admin/edit-tags.php 605
'<strong>' . apply_filters( 'the_category', get_cat_name( get_option( 'default_category' ) ), '', '' ) . '</strong>'