apply_filters( 'wp_count_attachments', object $counts, string|string[] $mime_type )

Modify returned attachment counts by mime type.


Parameters Parameters

$counts

(object) An object containing the attachment counts by mime type.

$mime_type

(string|string[]) Array or comma-separated list of MIME patterns.


Top ↑

Source Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.