wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_count_attachments › WordPress Filter Hooks

Since3.7.0
Deprecatedn/a
apply_filters( 'wp_count_attachments', (object)
Parameters: (2)
  • () counts An object containing the attachment counts by mime type.
    Required: Yes
  • () mime_type Array or comma-separated list of MIME patterns.
    Required: Yes
Defined at:
Codex:

Filters the attachment counts by mime type.





Source

return apply_filters( 'wp_count_attachments', (object) $counts, $mime_type );