WPDev.one
Core Class

WP_Block_Pattern_Categories_Registry

class WP_Block_Pattern_Categories_Registry // Constructor: function Object() { [native code] }

Class used for interacting with block pattern categories.

Methods 6 methods

Method / Return Description
register()
bool

Registers a pattern category.

Parameters: $category_name: mixed, $category_properties: mixed
unregister()
bool

Unregisters a pattern category.

Parameters: $category_name: mixed
get_registered()
array

Retrieves an array containing the properties of a registered pattern category.

Parameters: $category_name: mixed
get_all_registered()
array[]

Retrieves all registered pattern categories.

Parameters: $outside_init_only: mixed
is_registered()
bool

Checks if a pattern category is registered.

Parameters: $category_name: mixed
get_instance()
WP_Block_Pattern_Categories_Registry

Utility method to retrieve the main instance of the class.

Properties

Property / Type Description
$registered_categories
mixed
public
No description available.
$registered_categories_outside_init
mixed
public
No description available.
$instance
mixed
public
No description available.

Class Information

Source File
wp-includes/class-wp-block-pattern-categories-registry.php
Advertisement