apply_filters( 'wp_count_attachments', object $counts, string $mime_type )

Modify returned attachment counts by mime type.


Parameters

$counts

An object containing the attachment counts by mime type.

$mime_type

The mime type pattern used to filter the attachments counted.


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.7.0 Introduced.