register_block_core_shortcode()
Registers the core/shortcode block on server.
No Hooks.
Returns
null. Nothing (null).
Usage
register_block_core_shortcode();
Changelog
| Since 5.0.0 | Introduced. |
register_block_core_shortcode() register block core shortcode code WP 6.9.1
function register_block_core_shortcode() {
register_block_type_from_metadata(
__DIR__ . '/shortcode',
array(
'render_callback' => 'render_block_core_shortcode',
)
);
}