apply_filters( ‘wp_count_attachments’, stdClass $counts, string|string[] $mime_type )

In this article

Filters the attachment counts by mime type.

Parameters

$countsstdClass
An object containing the attachment counts by mime type.
$mime_typestring|string[]
Array or comma-separated list of MIME patterns.

Source

return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );

Changelog

VersionDescription
3.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.