register_block_core_post_featured_image()
Registers the core/post-featured-image block on the server.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
register_block_core_post_featured_image();
Список изменений
| С версии 5.8.0 | Введена. |
Код register_block_core_post_featured_image() register block core post featured image WP 7.0.3
function register_block_core_post_featured_image() {
register_block_type_from_metadata(
__DIR__ . '/post-featured-image',
array(
'render_callback' => 'render_block_core_post_featured_image',
)
);
}