register_block_core_latest_comments()
Registers the core/latest-comments block.
No Hooks.
Returns
null. Nothing (null).
Usage
register_block_core_latest_comments();
Changelog
| Since 5.3.0 | Introduced. |
register_block_core_latest_comments() register block core latest comments code WP 6.9.1
function register_block_core_latest_comments() {
register_block_type_from_metadata(
__DIR__ . '/latest-comments',
array(
'render_callback' => 'render_block_core_latest_comments',
)
);
}