{"id":1143,"date":"2014-04-25T06:02:51","date_gmt":"2014-04-25T06:02:51","guid":{"rendered":"http:\/\/developer.wordpress.org\/reference\/functions\/wp_count_attachments\/"},"modified":"2026-02-24T05:25:58","modified_gmt":"2026-02-24T05:25:58","slug":"wp_count_attachments","status":"publish","type":"wp-parser-function","link":"https:\/\/developer.wordpress.org\/reference\/functions\/wp_count_attachments\/","title":{"rendered":"wp_count_attachments()"},"excerpt":{"rendered":"<p>Counts number of attachments for the mime type(s).<\/p>\n","protected":false},"comment_status":"open","ping_status":"open","template":"","meta":{"_crdt_document":"","footnotes":""},"wp-parser-source-file":[94],"wp-parser-package":[70,3],"wp-parser-since":[12],"class_list":["post-1143","wp-parser-function","type-wp-parser-function","status-publish","hentry","wp-parser-source-file-wp-includes_post-php","wp-parser-package-post","wp-parser-package-wordpress","wp-parser-since-2-5-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function"}],"about":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/types\/wp-parser-function"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/comments?post=1143"}],"version-history":[{"count":4,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1143\/revisions"}],"predecessor-version":[{"id":146586,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/1143\/revisions\/146586"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=1143"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=1143"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=1143"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=1143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}