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



unregister_block_pattern › WordPress Function

Depuis5.5.0
Dépréciéen/a
› unregister_block_pattern ( $pattern_name )
Paramètres:
  • (string) $pattern_name Block pattern name including namespace.
    Requis: Oui
Retourne:
  • (bool) True if the pattern was unregistered with success and false otherwise.
Défini(e) dans:
Codex:

Unregisters a block pattern.



Source

function unregister_block_pattern( $pattern_name ) {
	return WP_Block_Patterns_Registry::get_instance()->unregister( $pattern_name );
}