wpseek.com
WordPress开发者和主题制作者的搜索引擎



unregister_block_template › WordPress Function

Since6.7.0
已弃用n/a
› unregister_block_template ( $template_name )
参数:
  • (string) $template_name Template name in the form of `plugin_uri//template_name`.
    Required: Yes
返回:
  • (WP_Block_Template|WP_Error) The unregistered template object on success, WP_Error object on failure or if the
    template doesn't exist.
定义在:
文档:

Unregister a block template.



源码

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