WordPress at a glance
filter is not described

wp_count_attachments filter-hook . WP 3.7.0

Modify returned attachment counts by mime type.


add_filter( 'wp_count_attachments', 'filter_function_name_7652', 10, 2 );
function filter_function_name_7652( $counts, $mime_type ){
	// filter...

	return $counts;
An object containing the attachment counts by mime type.
The mime type pattern used to filter the attachments counted.

Where the hook is called

wp-includes/post.php 2616
return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );

Where the hook is used (in WP core)

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