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



wp_unregister_block_template › WordPress Function

Since6.7.0
Deprecatedn/a
wp_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 wp_unregister_block_template( $template_name ) {
	return WP_Block_Templates_Registry::get_instance()->unregister( $template_name );
}