wpseek.com
A WordPress-centric search engine for devs and theme authors



unregister_block_template › WordPress Function

Since6.7.0
Deprecatedn/a
unregister_block_template ( $template_name )
Parameters:
  • (string) $template_name Template name in the form of `plugin_uri//template_name`.
    Required: Yes
Returns:
  • (WP_Block_Template|WP_Error) The unregistered template object on success, WP_Error object on failure or if the template doesn't exist.
Defined at:
Codex:

Unregister a block template.



Source

function unregister_block_template( $template_name ) {
	return WP_Block_Templates_Registry::get_instance()->unregister( $template_name );
}