{"id":116661,"date":"2025-02-07T12:14:39","date_gmt":"2025-02-07T11:14:39","guid":{"rendered":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/?page_id=116661"},"modified":"2025-02-07T12:14:39","modified_gmt":"2025-02-07T11:14:39","slug":"toc","status":"publish","type":"page","link":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/toc\/","title":{"rendered":"toc"},"content":{"rendered":"\n\n\n<p>also hier jetzt mal ein anker<\/p>\n\n\n<div\n\tclass=\"jgu-anchorpoint\"\n\tid=\"anker-eins\"\n\tdata-label=\"anker eins\"\n\tdata-hide-in-nav=\"false\"\n\ttabindex=\"0\"\n\tdata-initial-scroll=\"true\"\n><\/div>\n\n\n\n<p>Have you ever wanted to disable specific blocks in WordPress? Whether to simplify the editing experience, maintain consistency across a site, or any other reason, this article will guide you through the process.<\/p>\n\n\n\n<p>At its core, block restriction in WordPress can be accomplished with either PHP or JavaScript. The choice between these two depends largely on your existing site setup and personal preferences.<\/p>\n\n\n\n<p>For instance, extending your JavaScript code to include block restrictions might be the most seamless route if you\u2019re already enqueuing a JavaScript file for tasks like creating custom block variations or other Editor enhancements. On the other hand, PHP offers a server-side solution that is easy to add to existing plugins and themes already part of your environment.<\/p>\n\n\n<div\n\tclass=\"jgu-anchorpoint\"\n\tid=\"anker-2\"\n\tdata-label=\"anker 2\"\n\tdata-hide-in-nav=\"false\"\n\ttabindex=\"0\"\n\tdata-initial-scroll=\"true\"\n><\/div>\n    <div style=\"display: none\">\n        \n    <\/div>","protected":false},"excerpt":{"rendered":"<p>also hier jetzt mal ein anker Have you ever wanted to disable specific blocks in WordPress? Whether to simplify the editing experience, maintain consistency across a site, or any other reason, this article will guide you through the process. At its core, block restriction in WordPress can be accomplished with either PHP or JavaScript. The &hellip; <a href=\"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/toc\/\">Weiter lesen<\/a><\/p>\n","protected":false},"author":16,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-116661","page","type-page","status-publish","hentry"],"content_raw":"<!-- wp:table-of-contents \/-->\n\n<!-- wp:paragraph -->\n<p>also hier jetzt mal ein anker<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:jgu\/anchorpoint {\"title\":\"anker eins\",\"slug\":\"anker-eins\"} \/-->\n\n<!-- wp:paragraph -->\n<p>Have you ever wanted to disable specific blocks in WordPress? Whether to simplify the editing experience, maintain consistency across a site, or any other reason, this article will guide you through the process.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>At its core, block restriction in WordPress can be accomplished with either PHP or JavaScript. The choice between these two depends largely on your existing site setup and personal preferences.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:paragraph -->\n<p>For instance, extending your JavaScript code to include block restrictions might be the most seamless route if you\u2019re already enqueuing a JavaScript file for tasks like creating custom block variations or other Editor enhancements. On the other hand, PHP offers a server-side solution that is easy to add to existing plugins and themes already part of your environment.<\/p>\n<!-- \/wp:paragraph -->\n\n<!-- wp:jgu\/anchorpoint {\"title\":\"anker 2\",\"slug\":\"anker-2\"} \/-->","_links":{"self":[{"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/pages\/116661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/comments?post=116661"}],"version-history":[{"count":1,"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/pages\/116661\/revisions"}],"predecessor-version":[{"id":116664,"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/pages\/116661\/revisions\/116664"}],"wp:attachment":[{"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/media?parent=116661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/categories?post=116661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cms.zdv.uni-mainz.de\/modul-demo\/wp-json\/wp\/v2\/tags?post=116661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}