Filters the attachment counts by mime type.
$countsstdClass
$mime_typestring|string[]
return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_count_attachments