wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



unregister_block_template › WordPress Function

Desde6.7.0
Obsoleton/a
› unregister_block_template ( $template_name )
Parâmetros:
  • (string) $template_name Template name in the form of `plugin_uri//template_name`.
    Required: Yes
Retorna:
  • (WP_Block_Template|WP_Error) The unregistered template object on success, WP_Error object on failure or if the
    template doesn't exist.
Definido em:
Codex:

Unregister a block template.



Fonte

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