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
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.