unregister_block_pattern()
Unregisters a block pattern.
No Hooks.
Return
true|false
. True if the pattern was unregistered with success and false otherwise.
Usage
unregister_block_pattern( $pattern_name );
- $pattern_name(string) (required)
- Block pattern name including namespace.
Changelog
Since 5.5.0 | Introduced. |
unregister_block_pattern() unregister block pattern code WP 6.7.1
function unregister_block_pattern( $pattern_name ) { return WP_Block_Patterns_Registry::get_instance()->unregister( $pattern_name ); }