wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



unregister_block_template › WordPress Function

Da6.7.0
Deprecaton/a
› unregister_block_template ( $template_name )
Parametri:
  • (string) $template_name Template name in the form of `plugin_uri//template_name`.
    Richiesto: Sì
Ritorna:
  • (WP_Block_Template|WP_Error) The unregistered template object on success, WP_Error object on failure or if the
    template doesn't exist.
Definito a:
Codex:

Unregister a block template.



Sorgenti

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