apply_filters( 'wp_count_attachments', object $counts, string|string[] $mime_type )
Modify returned attachment counts by mime type.
Parameters
- $counts
-
(object) An object containing the attachment counts by mime type.
- $mime_type
-
(string|string[]) Array or comma-separated list of MIME patterns.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_count_attachments