Core Function
View Source on Trac ↗ register_block_template()
register_block_template( mixed $template_name, mixed $args = array() ) Register a block template.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $template_name string | Template name in the form of `plugin_uri//template_name`. Required |
| (array | | string) $args { Required |
Return Value
((WP_Block_Template)
| WP_Error) The registered template object on success, WP_Error object on failure.
Function Information
Since Version
6.7.0
Source File
wp-includes/block-template.php
Advertisement