{"id":39860,"date":"2018-12-06T21:12:26","date_gmt":"2018-12-06T21:12:26","guid":{"rendered":"https:\/\/developer.wordpress.org\/reference\/functions\/has_block\/"},"modified":"2026-02-24T05:20:54","modified_gmt":"2026-02-24T05:20:54","slug":"has_block","status":"publish","type":"wp-parser-function","link":"https:\/\/developer.wordpress.org\/reference\/functions\/has_block\/","title":{"rendered":"has_block()"},"excerpt":{"rendered":"<p>Determines whether a $post or a string contains a specific block type.<\/p>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"wp-parser-source-file":[914],"wp-parser-package":[915,3],"wp-parser-since":[907],"class_list":["post-39860","wp-parser-function","type-wp-parser-function","status-publish","hentry","wp-parser-source-file-wp-includes_blocks-php","wp-parser-package-blocks","wp-parser-package-wordpress","wp-parser-since-5-0-0"],"revision_note":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/39860","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=39860"}],"version-history":[{"count":4,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/39860\/revisions"}],"predecessor-version":[{"id":153121,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-function\/39860\/revisions\/153121"}],"wp:attachment":[{"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/media?parent=39860"}],"wp:term":[{"taxonomy":"wp-parser-source-file","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-source-file?post=39860"},{"taxonomy":"wp-parser-package","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-package?post=39860"},{"taxonomy":"wp-parser-since","embeddable":true,"href":"https:\/\/developer.wordpress.org\/wp-json\/wp\/v2\/wp-parser-since?post=39860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}