{"id":13741041,"date":"2020-12-03T15:27:09","date_gmt":"2020-12-03T15:27:09","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wp_body_open-and-phpcsignore-notation\/"},"modified":"2020-12-03T15:27:09","modified_gmt":"2020-12-03T15:27:09","slug":"wp_body_open-and-phpcsignore-notation","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wp_body_open-and-phpcsignore-notation\/","title":{"rendered":"wp_body_open and \/\/phpcs:ignore notation"},"content":{"rendered":"<p>hello kind GP ppl,<\/p>\n<p>is the comment <code>\/\/phpcs:ignore<\/code> is specifically for Theme Check purposes, best practices, or simply a coding courtesy? i see it a lot in GP.<\/p>\n<p>i read about wp_body_open here:<\/p>\n<p><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_body_open\/\" rel=\"noopener\" target=\"_blank\">wp_body_open<\/a><\/p>\n<p><a href=\"https:\/\/generatewp.com\/wordpress-5-2-action-that-every-theme-should-use\/\" rel=\"noopener\" target=\"_blank\">generatewp.com<\/a><\/p>\n<p><a href=\"https:\/\/make.wordpress.org\/core\/2019\/04\/24\/miscellaneous-developer-updates-in-5-2\/\" rel=\"noopener\" target=\"_blank\">wp 5.2 update<\/a><\/p>\n<p>i&#8217;m as of yet unfamiliar with php codesniffer.<\/p>\n<p>to my self-trained eye, the GP implementation of wp_body_open is an alternative backwards compat w added benefit of using less code.<\/p>\n<p>if there&#8217;s a better place to submit non-support Qs and comments, please advise. i don&#8217;t want to be an annoyance, but i really enjoy learning about programming, php and WP using GP theme.<\/p>\n<p>thank you, L<\/p>\n","protected":false},"template":"","class_list":["post-13741041","topic","type-topic","status-publish","hentry","topic-tag-wordpress-5-2","topic-tag-wp_body_open"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13741041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13741041\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13741041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}