On this page
apply_filters( 'wp_count_attachments', stdClass $counts, string|string[] $mime_type )
Modifies returned 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
File: wp-includes/post.php. View all references
return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );
Related
Used By
| Used By | Description |
|---|---|
| wp_count_attachments() wp-includes/post.php | Counts number of attachments for the mime type(s). |
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_count_attachments