wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



unregister_block_template › WordPress Function

Depuis6.7.0
Dépréciéen/a
› unregister_block_template ( $template_name )
Paramètres:
  • (string) $template_name Template name in the form of `plugin_uri//template_name`.
    Requis: Oui
Retourne:
  • (WP_Block_Template|WP_Error) The unregistered template object on success, WP_Error object on failure or if the
    template doesn't exist.
Défini(e) dans:
Codex:

Unregister a block template.



Source

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