A WordPress-centric search engine for devs and theme authors



wp_count_attachments ›

Since3.7.0
Deprecatedn/a
apply_filters( 'wp_count_attachments', (object)
Parameters: (2)
  • (object) $counts An object containing the attachment counts by mime type.
    Required: Yes
  • (string) $mime_type The mime type pattern used to filter the attachments counted.
    Required: Yes
Defined at:
Codex:

Modify returned attachment counts by mime type.





Source

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