Core Function
View Source on Trac ↗ unregister_block_template()
unregister_block_template( mixed $template_name ) Unregister a block template.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $template_name string | Template name in the form of `plugin_uri//template_name`. Required |
Return Value
((WP_Block_Template)
(WP_Block_Template | WP_Error) The unregistered template object on success, WP_Error object on failure or if the
template doesn't exist.
Function Information
Since Version
6.7.0
Source File
wp-includes/block-template.php
Advertisement