{"id":228513,"date":"2022-10-17T10:29:00","date_gmt":"2022-10-17T07:29:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=228513"},"modified":"2022-11-09T02:48:12","modified_gmt":"2022-11-08T23:48:12","slug":"zareiestrujte-shablon-bloku-dlja-redaktora-blokiv-wordpress-gutenberg","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/uk\/zareiestrujte-shablon-bloku-dlja-redaktora-blokiv-wordpress-gutenberg\/","title":{"rendered":"\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u0431\u043b\u043e\u043a\u0456\u0432 WordPress (Gutenberg)"},"content":{"rendered":"\n<p>\u0423 \u0441\u0432\u043e\u0454\u043c\u0443 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u044f \u0434\u043e\u0441\u043b\u0456\u0434\u0436\u0443\u0432\u0430\u0432 <a href=\"https:\/\/wholesomecode.ltd\/guides\/register-block-pattern-wordpress-gutenberg\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0441\u0438\u043b\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u0456\u0432 \u0431\u043b\u043e\u043a\u0456\u0432<\/a>. \u0428\u0430\u0431\u043b\u043e\u043d\u0438 \u0431\u043b\u043e\u043a\u0456\u0432 \u0441\u0445\u043e\u0436\u0456, \u0430\u043b\u0435 \u0437\u0430\u043c\u0456\u0441\u0442\u044c \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043f\u043e\u043a\u043b\u0430\u0434\u0430\u0442\u0438\u0441\u044f \u043d\u0430 \u0432\u0430\u0448 \u043a\u043b\u0456\u0454\u043d\u0442 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0456\u0432 \u0431\u043b\u043e\u043a\u0456\u0432 \u0443 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u0432\u0456\u043d \u043d\u0430\u0434\u0430\u0454 \u0457\u043c \u043f\u043e\u0432\u043d\u0438\u0439 \u043c\u0430\u043a\u0435\u0442, \u0449\u043e\u0439\u043d\u043e \u0432\u043e\u043d\u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u044c \u043d\u043e\u0432\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u044e.<\/p>\n<h2>\u043f\u0435\u0440\u0435\u0434\u0443\u043c\u043e\u0432\u0438<\/h2>\n<ul>\n<li>\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f WordPress<\/li>\n<li>\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043a\u043e\u0434\u0443<\/li>\n<\/ul>\n<h2>\u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0441\u0432\u0456\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443<\/h2>\n<p>\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456 \u044f \u0437\u0431\u0438\u0440\u0430\u044e\u0441\u044f \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0442\u043e\u0439 \u0441\u0430\u043c\u0438\u0439 <a href=\"https:\/\/wholesomecode.ltd\/guides\/register-block-pattern-wordpress-gutenberg\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443, \u044f\u043a\u0438\u0439 \u044f \u0441\u0442\u0432\u043e\u0440\u0438\u0432 \u0443 \u0441\u0432\u043e\u0454\u043c\u0443 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443<\/a>, \u0430\u043b\u0435 \u044f\u043a \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443.<\/p>\n<p>\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043c\u0438 \u0441\u043a\u043e\u043f\u0456\u044e\u0432\u0430\u043b\u0438 HTML \u0432\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430. \u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u043c\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e\u0441\u044f \u0437\u0440\u043e\u0431\u0438\u0442\u0438 \u0449\u043e\u0441\u044c \u0434\u0435\u0449\u043e \u0456\u043d\u0448\u0435 \u0442\u0430 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043c\u0430\u0441\u0438\u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0456\u0432 \u0456\u043c\u0435\u043d, \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u043e\u0441\u0442\u0435\u0439 \u0456 \u0432\u043c\u0456\u0441\u0442\u0443 \u0431\u043b\u043e\u043a\u0456\u0432.<\/p>\n<p>\u0423 \u0441\u0432\u043e\u0457\u0439 \u043d\u0430\u0439\u043f\u0440\u043e\u0441\u0442\u0456\u0448\u0456\u0439 \u0444\u043e\u0440\u043c\u0456 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443 \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0454 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>$block_template = [\n  [ 'core\/heading', [ 'level'   =&gt; 2, 'content' =&gt; 'Example Block Template' ] ],\n  [ 'core\/paragraph', [ 'content' =&gt; 'Lorem ipsum dolor sit amet labore cras venenatis.' ] ],\n];\n<\/code><\/pre>\n<p>\u042f\u043a \u0431\u0430\u0447\u0438\u0442\u0435, \u0446\u0435 \u043c\u0430\u0441\u0438\u0432, \u044f\u043a\u0438\u0439 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438 \u0437\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c:<\/p>\n<ul>\n<li>\u041f\u0440\u043e\u0441\u0442\u0456\u0440 \u0456\u043c\u0435\u043d \u0431\u043b\u043e\u043a\u0443<\/li>\n<li>\u0410\u0442\u0440\u0438\u0431\u0443\u0442\u0438 \u0431\u043b\u043e\u043a\u0443<\/li>\n<\/ul>\n<p>\u041e\u0434\u043d\u0430\u043a \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u043a\u043b\u0430\u0434\u0435\u043d\u0456 \u0431\u043b\u043e\u043a\u0438, \u0442\u043e\u043c\u0443 \u043c\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043c\u043e \u0442\u0440\u0435\u0442\u0456\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0443 \u0446\u0435\u0439 \u043c\u0430\u0441\u0438\u0432 \u0431\u043b\u043e\u043a\u0456\u0432, \u044f\u043a\u0438\u0439 \u0454 innerBlocks.<\/p>\n<p><strong>\u041f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0435 \u0440\u043e\u0437\u043c\u0456\u0449\u0435\u043d\u043d\u044f \u0431\u043b\u043e\u043a\u0443?<\/strong><\/p>\n<p>\u0417\u0430\u0443\u0432\u0430\u0436\u0442\u0435, \u0449\u043e \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0438 \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u043c\u0438, \u0449\u043e\u0431 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0434\u0430\u0442\u0438 \u0431\u043b\u043e\u043a\u0438 \u0431\u0435\u0437 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e\u0433\u043e \u0432\u043c\u0456\u0441\u0442\u0443.<\/p>\n<p>\u041c\u0430\u0441\u0438\u0432 \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u043e\u0433\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0443, \u044f\u043a\u0438\u0439 \u043c\u0438 \u0441\u0442\u0432\u043e\u0440\u0438\u043b\u0438 \u0432 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u0437\u0456 \u0448\u0430\u0431\u043b\u043e\u043d\u0456\u0432 \u0431\u043b\u043e\u043a\u0456\u0432, \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0431\u0456\u043b\u044c\u0448 \u0441\u043a\u043b\u0430\u0434\u043d\u0438\u0439 \u043c\u0430\u0441\u0438\u0432, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434:<\/p>\n<pre><code>$block_template = [\n  [\n    'core\/group',\n    [],\n    [\n      [\n        'core\/heading',\n        [\n          'level'   =&gt; 2,\n          'content' =&gt; 'Example Block Template',\n        ]\n      ],\n      [\n        'core\/paragraph',\n        [\n          'content' =&gt; 'Lorem ipsum dolor sit amet labore cras venenatis.',\n        ]\n      ],\n      [\n        'core\/columns',\n        [],\n        [\n          [\n            'core\/column',\n            [],\n            [\n              [\n                'core\/heading',\n                [\n                  'level'   =&gt; 3,\n                  'content' =&gt; 'Sub Heading 1',\n                ]\n              ],\n              [\n                'core\/paragraph',\n                [\n                  'content' =&gt; 'Lorem ipsum dolor sit amet id erat aliquet diam ullamcorper tempus massa eleifend vivamus.',\n                ]\n              ],\n            ]\n          ],\n          [\n            'core\/column',\n            [],\n            [\n              [\n                'core\/heading',\n                [\n                  'level'   =&gt; 3,\n                  'content' =&gt; 'Sub Heading 2',\n                ]\n              ],\n              [\n                'core\/paragraph',\n                [\n                  'content' =&gt; 'Morbi augue cursus quam pulvinar eget volutpat suspendisse dictumst mattis id.',\n                ]\n              ],\n            ]\n          ],\n        ],\n      ],\n    ]\n  ]\n];\n<\/code><\/pre>\n<h2>\u0417\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443<\/h2>\n<h3>\u0420\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0443 \u0431\u043b\u043e\u043a\u0443 \u0434\u043b\u044f \u043d\u0430\u044f\u0432\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457<\/h3>\n<p>\u0429\u043e\u0431 \u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443 \u0434\u043b\u044f \u0456\u0441\u043d\u0443\u044e\u0447\u043e\u0433\u043e \u0442\u0438\u043f\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, <code>post<\/code>\u0442\u0438\u043f\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457), \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043d\u0438\u0436\u0447\u0435 \u043a\u043e\u0434, \u0449\u043e\u0431 \u0437\u0430\u043c\u0456\u043d\u0438\u0442\u0438 \u043e\u0431&#8217;\u0454\u043a\u0442 \u0442\u0438\u043f\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457.<\/p>\n<pre><code>function register_block_template() {\n\n    $post_type_object                = get_post_type_object( 'post' );\n    $post_type_object-&gt;template      = $block_template;\n    $post_type_object-&gt;template_lock = 'all';\n}\nadd_action( 'init', 'register_block_template' );\n<\/code><\/pre>\n<p>\u0426\u0435\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0454 \u0448\u0430\u0431\u043b\u043e\u043d \u0456 (\u043e\u043f\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u043e) <code>[template_lock](https:\/\/wholesomecode.ltd\/#template-lock)<\/code>\u0442\u0438\u043f.<\/p>\n<p>\u041f\u043e\u0432\u043d\u0438\u0439 \u043a\u043e\u0434 \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0442\u0438\u043c\u0435 \u0442\u0430\u043a:<\/p>\n<pre><code>function register_block_template() {\n    $block_template = [\n      [\n        'core\/group',\n        [],\n        [\n          [\n            'core\/heading',\n            [\n              'level'   =&gt; 2,\n              'content' =&gt; 'Example Block Template',\n            ]\n          ],\n          [\n            'core\/paragraph',\n            [\n              'content' =&gt; 'Lorem ipsum dolor sit amet labore cras venenatis.',\n            ]\n          ],\n          [\n            'core\/columns',\n            [],\n            [\n              [\n                'core\/column',\n                [],\n                [\n                  [\n                    'core\/heading',\n                    [\n                      'level'   =&gt; 3,\n                      'content' =&gt; 'Sub Heading 1',\n                    ]\n                  ],\n                  [\n                    'core\/paragraph',\n                    [\n                      'content' =&gt; 'Lorem ipsum dolor sit amet id erat aliquet diam ullamcorper tempus massa eleifend vivamus.',\n                    ]\n                  ],\n                ]\n              ],\n              [\n                'core\/column',\n                [],\n                [\n                  [\n                    'core\/heading',\n                    [\n                      'level'   =&gt; 3,\n                      'content' =&gt; 'Sub Heading 2',\n                    ]\n                  ],\n                  [\n                    'core\/paragraph',\n                    [\n                      'content' =&gt; 'Morbi augue cursus quam pulvinar eget volutpat suspendisse dictumst mattis id.',\n                    ]\n                  ],\n                ]\n              ],\n            ],\n          ],\n        ]\n      ]\n    ];\n\n    $post_type_object                = get_post_type_object( 'post' );\n    $post_type_object-&gt;template      = $block_template;\n    $post_type_object-&gt;template_lock = 'all';\n}\nadd_action( 'init', 'register_block_template' );\n<\/code><\/pre>\n<h3>\u0420\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0443 \u0431\u043b\u043e\u043a\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457<\/h3>\n<p>\u042f\u043a\u0449\u043e \u0432\u0438 \u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0454\u0442\u0435 \u0442\u0438\u043f \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0432 <code>template<\/code>\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <code>register_post_type<\/code>.<\/p>\n<p>\u0412\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0438 <code>[template_lock](https:\/\/wholesomecode.ltd\/#template-lock)<\/code>\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0443 <code>register_post_type<\/code>.<\/p>\n<h3>\u0411\u043b\u043e\u043a\u0443\u0432\u0430\u043d\u043d\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0443<\/h3>\n<p>\u0410\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <code>template_lock<\/code>\u043c\u043e\u0436\u0435 \u0440\u043e\u0431\u0438\u0442\u0438 \u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0440\u0435\u0447\u0435\u0439 \u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0443, \u044f\u043a\u0438\u0439 \u0439\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0454\u0442\u044c\u0441\u044f. \u0412\u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u0440\u0430\u0445\u043e\u0432\u0430\u043d\u0456 \u0432 <a href=\"https:\/\/developer.wordpress.org\/block-editor\/developers\/block-api\/block-templates\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u0437 \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438 Gutenberg<\/a> \u044f\u043a:<\/p>\n<ul>\n<li><code>all<\/code>\u2014 \u0437\u0430\u043f\u043e\u0431\u0456\u0433\u0430\u0454 \u0432\u0441\u0456\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0456\u044f\u043c. \u041d\u0435\u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043d\u043e\u0432\u0456 \u0431\u043b\u043e\u043a\u0438, \u043f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u0456\u0441\u043d\u0443\u044e\u0447\u0456 \u0431\u043b\u043e\u043a\u0438 \u0430\u0431\u043e \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438 \u0431\u043b\u043e\u043a\u0438.<\/li>\n<li><code>insert<\/code>\u2014 \u0437\u0430\u0431\u043e\u0440\u043e\u043d\u044f\u0454 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438 \u0430\u0431\u043e \u0432\u0438\u0434\u0430\u043b\u044f\u0442\u0438 \u0431\u043b\u043e\u043a\u0438, \u0430\u043b\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u043f\u0435\u0440\u0435\u043c\u0456\u0449\u0443\u0432\u0430\u0442\u0438 \u0456\u0441\u043d\u0443\u044e\u0447\u0456 \u0431\u043b\u043e\u043a\u0438.<\/li>\n<\/ul>\n<p><strong>\u0411\u043b\u043e\u043a\u0443\u0432\u0430\u043d\u043d\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0443 \u043d\u0435 \u043f\u0440\u0430\u0446\u044e\u0454 \u0437 \u0432\u043a\u043b\u0430\u0434\u0435\u043d\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438<\/strong><\/p>\n<p>\u0411\u043b\u043e\u043a\u0443\u0432\u0430\u043d\u043d\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0443 \u043f\u0440\u0430\u0446\u044e\u0454 \u043b\u0438\u0448\u0435 \u043d\u0430 \u0431\u043b\u043e\u043a\u0430\u0445 \u0432\u0435\u0440\u0445\u043d\u044c\u043e\u0433\u043e \u0440\u0456\u0432\u043d\u044f. \u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u0446\u0435 \u043d\u0430 \u0441\u0432\u043e\u044e \u043a\u043e\u0440\u0438\u0441\u0442\u044c, \u0441\u0442\u0432\u043e\u0440\u0438\u0432\u0448\u0438 \u043c\u0430\u043a\u0435\u0442 \u0456\u0437 \u0444\u0456\u043a\u0441\u043e\u0432\u0430\u043d\u0438\u043c\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u043c\u0438, \u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u043d\u044f\u043c\u0438, \u0430\u0431\u0437\u0430\u0446\u0430\u043c\u0438 \u0442\u0430 \u0433\u0440\u0443\u043f\u043e\u0432\u043e\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044e, \u0449\u043e\u0431 \u0432\u0430\u0448 \u043a\u043b\u0456\u0454\u043d\u0442 \u043c\u0456\u0433 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u0432\u043c\u0456\u0441\u0442, \u044f\u043a\u0438\u0439 \u0439\u043e\u043c\u0443 \u043f\u043e\u0434\u043e\u0431\u0430\u0454\u0442\u044c\u0441\u044f.<\/p>\n<p>\u0412\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"https:\/\/wholesomecode.ltd\/guides\/template-innerblocks-wordpress-gutenberg\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0432\u043a\u043b\u0430\u0434\u0435\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e InnerBlocks<\/a>.<\/p>\n<p>\u0412\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"https:\/\/wholesomecode.ltd\/#allowed-block-types\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u043e\u0431\u043c\u0435\u0436\u0438\u0442\u0438 \u0431\u043b\u043e\u043a\u0438, \u044f\u043a\u0456 \u0432\u0430\u043c \u0434\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438 \u0432 \u043f\u0435\u0432\u043d\u0456 \u0442\u0438\u043f\u0438 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0439<\/a>.<\/p>\n<h2>\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443<\/h2>\n<p>\u0429\u043e\u0431 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443, \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u043d\u043e\u0432\u0443 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u044e (\u0430\u0431\u043e \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u0442\u0438\u043f \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457, \u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u0442\u043e\u0433\u043e, \u044f\u043a \u0432\u0438 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043b\u0438 \u0440\u0435\u0447\u0456). \u0428\u0430\u0431\u043b\u043e\u043d \u0431\u0443\u0434\u0435 \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e, \u0456 \u0442\u0435\u043f\u0435\u0440 \u0432\u0438 \u043c\u0430\u0442\u0438\u043c\u0435\u0442\u0435 \u0444\u0456\u043a\u0441\u043e\u0432\u0430\u043d\u0456 \u043e\u0431\u043b\u0430\u0441\u0442\u0456 \u0432\u043c\u0456\u0441\u0442\u0443 \u043d\u0430 \u0441\u0432\u043e\u0457\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456.<\/p>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u043f\u043e\u043a\u0430\u0437\u0443\u0454 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443<\/p>\n<p>\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u043c\u0435\u0436\u0438\u0442\u0438 \u0431\u043b\u043e\u043a\u0438, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456 \u0434\u043b\u044f \u0440\u0456\u0437\u043d\u0438\u0445 \u0442\u0438\u043f\u0456\u0432 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0439, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434.<\/p>\n<pre><code>function filter_allowed_block_types( $allowed_block_types, $post) {\n\n  if ($post-&gt;post_type !== 'post') {\n    return $allowed_block_types;\n  }\n\n  $allowed_block_types = [\n    'core\/column',\n    'core\/columns',\n    'core\/group',\n    'core\/heading',\n    'core\/paragraph',\n  ];\n\n  return $allowed_block_types;\n}\nadd_filter( 'allowed_block_types', 'filter_allowed_block_types', 10, 2 );\n<\/code><\/pre>\n<p>\u041d\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0432\u0438\u0449\u0435 \u043a\u043e\u0434 \u043e\u0431\u043c\u0435\u0436\u0443\u0454 \u0431\u043b\u043e\u043a\u0443\u0432\u0430\u043d\u043d\u044f, \u0434\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0456 \u0432 <code>post<\/code>\u0442\u0438\u043f\u0456 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457:<\/p>\n<ul>\n<li>\n<p>\u0421\u0442\u043e\u0432\u043f\u0435\u0446\u044c (<code>core\/column<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u0421\u0442\u043e\u0432\u043f\u0446\u0456 (<code>core\/column<\/code>\u0438)<\/p>\n<\/li>\n<li>\n<p>\u0413\u0440\u0443\u043f\u0430 (<code>core\/group<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a (<code>core\/heading<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u0410\u0431\u0437\u0430\u0446 (<code>core\/paragraph<\/code>)<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0449\u043e\u0441\u044c \u0431\u0456\u043b\u044c\u0448 \u0433\u043d\u0443\u0447\u043a\u0435? \u041d\u0430\u0442\u043e\u043c\u0456\u0441\u0442\u044c \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 <a href=\"https:\/\/wholesomecode.ltd\/guides\/register-block-pattern-wordpress-gutenberg\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d \u0431\u043b\u043e\u043a\u0443<\/a><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0449\u043e\u0441\u044c, \u0449\u043e \u0441\u0442\u043e\u0441\u0443\u0454\u0442\u044c\u0441\u044f \u0434\u043e\u0447\u0456\u0440\u043d\u0456\u0445 \u0431\u043b\u043e\u043a\u0456\u0432? \u0421\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 <a href=\"https:\/\/wholesomecode.ltd\/guides\/template-innerblocks-wordpress-gutenberg\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438 \u0448\u0430\u0431\u043b\u043e\u043d InnerBlocks<\/a><\/p>\n<\/li>\n<\/ul>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/wholesomecode.ltd\" class=\"external external_icon\">wholesomecode.ltd<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 \u0441\u0432\u043e\u0454\u043c\u0443 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u043c\u0443 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a\u0443 \u044f \u0434\u043e\u0441\u043b\u0456\u0434\u0436\u0443\u0432\u0430\u0432 \u0441\u0438\u043b\u0443 \u0431\u043b\u043e\u043a\u043e\u0432\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0456\u0432. \u0428\u0430\u0431\u043b\u043e\u043d\u0438 \u0431\u043b\u043e\u043a\u0456\u0432 \u0441\u0445\u043e\u0436\u0456, \u0430\u043b\u0435 \u0437\u0430\u043c\u0456\u0441\u0442\u044c \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u043f\u043e\u043a\u043b\u0430\u0434\u0430\u0442\u0438\u0441\u044f \u043d\u0430 \u0432\u0430\u0448 \u043a\u043b\u0456\u0454\u043d\u0442 \u0434\u043b\u044f \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0456\u0432 \u0431\u043b\u043e\u043a\u0456\u0432 \u0443 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u0432\u0456\u043d \u0434\u0430\u0454&#8230;<\/p>\n","protected":false},"author":1,"featured_media":223608,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[869,902,725,933],"tags":[1174],"class_list":["post-228513","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-10","category-kod-3","category-rozrobnyk","category-predmetiv","tag-affiai-uk"],"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/228513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/comments?post=228513"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/228513\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media?parent=228513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/categories?post=228513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/tags?post=228513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}