A WordPress-centric search engine for devs and theme authors



unregister_block_pattern ›

Since5.5.0
Deprecatedn/a
unregister_block_pattern ( $pattern_name )
Parameters:
  • (string) $pattern_name Pattern name including namespace.
    Required: Yes
Returns:
  • (bool) True if the pattern was unregistered with success and false otherwise.
Defined at:
Codex:

Unregisters a pattern.



Source

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