WordPress at a glance
filter is not described

comments_number filter-hook . WP 1.5.0

Filters the comments count for display.


add_filter( 'comments_number', 'filter_function_name_5752', 10, 2 );
function filter_function_name_5752( $output, $number ){
	// filter...

	return $output;
A translatable string formatted based on whether the count is equal to 0, 1, or 1+.
The number of post comments.

Where the hook is called

wp-includes/comment-template.php 945
return apply_filters( 'comments_number', $output, $number );

Where the hook is used (in WP core)

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