Core Class
View Source on Trac ↗
Core Class
WP_Block_Bindings_Registry
class WP_Block_Bindings_Registry
// Constructor: function Object() { [native code] } Core class used for interacting with block bindings sources.
Methods 7 methods
| Method / Return | Description |
|---|---|
| register() (WP_Block_Bindings_Source | Registers a new block bindings source.
Parameters: $source_name: string, $source_properties: array |
| unregister() (WP_Block_Bindings_Source | Unregisters a block bindings source.
Parameters: $source_name: string |
| get_all_registered() WP_Block_Bindings_Source[] | Retrieves the list of all registered block bindings sources. |
| get_registered() (WP_Block_Bindings_Source | Retrieves a registered block bindings source.
Parameters: $source_name: string |
| is_registered() bool | Checks if a block bindings source is registered.
Parameters: $source_name: mixed |
| __wakeup() void | Wakeup magic method. |
| get_instance() WP_Block_Bindings_Registry | Utility method to retrieve the main instance of the class. |
Properties
| Property / Type | Description |
|---|---|
| $sources mixed public | No description available. |
| $instance mixed public | No description available. |
| $allowed_source_properties mixed public | No description available. |
| $supported_blocks mixed public | No description available. |
Class Information
Since Version
6.5.0
Source File
wp-includes/class-wp-block-bindings-registry.php
Advertisement