WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_count_attachments

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/post.php apply_filters 3120 /**
* Modifies returned attachment counts by mime type.
*
* @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.
*/

Hook Parameters

Parameter Type Name Description
stdClass $counts An object containing the attachment counts by
string|string[] $mime_type Array or comma-separated list of MIME patterns.