Filters the attachment counts by mime type.
$countsstdClass$mime_typestring|string[]wp-includes/post.php:3591wp_count_attachments() * @since 3.7.0 * * @param stdClass $counts An object containing the attachment counts by * mime type. * @param string|string[] $mime_type Array or comma-separated list of MIME patterns. */ return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );} /** * Gets default post mime types. * * @since 2.9.0Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.