Registers a new pattern.
unregister_block_pattern
Unregisters a pattern.
WP_Block_Patterns_Registry
Class used for interacting with patterns.
WP_Block_Patterns_Registry::register
Registers a pattern.
Advertisement
WP_Block_Patterns_Registry::unregister
Unregisters a pattern.
WP_Block_Patterns_Registry::get_registered
Retrieves an array containing the properties of a registered pattern.
WP_Block_Patterns_Registry::get_all_registered
Retrieves all registered patterns.
WP_Block_Patterns_Registry::is_registered
Checks if a pattern is registered.
Advertisement
register_block_pattern_category
Registers a new pattern category.
WP_Block_Patterns_Registry::get_instance
Utility method to retrieve the main instance of the class.
unregister_block_pattern_category
Unregisters a pattern category.
WP_Block_Pattern_Categories_Registry::register
Registers a pattern category.
Advertisement
WP_Block_List
Class representing a list of block instances.
WP_Block_List::__construct
Constructor.
WP_Block_List::offsetExists
Returns true if a block exists by the specified block index, or false otherwise.