Unregisters a block pattern.
Parameters
$pattern_name
stringrequired- Block pattern name including namespace.
Source
function unregister_block_pattern( $pattern_name ) {
return WP_Block_Patterns_Registry::get_instance()->unregister( $pattern_name );
}
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
Example code to remove pattern,
Example code to remove specific patterns registered in core,