wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



unregister_block_template › WordPress Function

Od6.7.0
Przestarzałyn/a
› unregister_block_template ( $template_name )
Parametry:
  • (string) $template_name Template name in the form of `plugin_uri//template_name`.
    Wymagane: Tak
Powrót:
  • (WP_Block_Template|WP_Error) The unregistered template object on success, WP_Error object on failure or if the
    template doesn't exist.
Zdefiniowane na:
Codex:

Unregister a block template.



Źródło

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