/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
packages/block-library/src/post-comment/index.php
17 строк
405 B
Dávid Szabó
Add Post Comment block (#24781)
26 авг 2020, 14:16
Не верифицирован
26 авг 2020, 14:16
a1201ab
Код
Авторство
О чём код?
<?php /** * Server-side rendering of the `core/post-comment` block. * * @package WordPress */ /** * Registers the `core/post-comment` block on the server. * We need to do this to make context available for inner blocks. */ function register_block_core_post_comment() { register_block_type_from_metadata( __DIR__ . '/post-comment' ); } add_action( 'init', 'register_block_core_post_comment' );