| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Blocks API: WP_Block_Styles_Registry class
| File Size: | 181 lines (5 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| register( $block_name, $style_properties ) X-Ref |
| Registers a block style for the given block type. return: bool True if the block style was registered with success and false otherwise. param: string $block_name Block type name including namespace. param: array $style_properties Array containing the properties of the style name, label, since: 5.3.0 |
| unregister( $block_name, $block_style_name ) X-Ref |
| Unregisters a block style of the given block type. return: bool True if the block style was unregistered with success and false otherwise. param: string $block_name Block type name including namespace. param: string $block_style_name Block style name. since: 5.3.0 |
| get_registered( $block_name, $block_style_name ) X-Ref |
| Retrieves the properties of a registered block style for the given block type. return: array Registered block style properties. param: string $block_name Block type name including namespace. param: string $block_style_name Block style name. since: 5.3.0 |
| get_all_registered() X-Ref |
| Retrieves all registered block styles. return: array[] Array of arrays containing the registered block styles properties grouped by block type. since: 5.3.0 |
| get_registered_styles_for_block( $block_name ) X-Ref |
| Retrieves registered block styles for a specific block type. return: array[] Array whose keys are block style names and whose values are block style properties. param: string $block_name Block type name including namespace. since: 5.3.0 |
| is_registered( $block_name, $block_style_name ) X-Ref |
| Checks if a block style is registered for the given block type. return: bool True if the block style is registered, false otherwise. param: string $block_name Block type name including namespace. param: string $block_style_name Block style name. since: 5.3.0 |
| get_instance() X-Ref |
| Utility method to retrieve the main instance of the class. The instance will be created if it does not exist yet. return: WP_Block_Styles_Registry The main instance. since: 5.3.0 |
| Generated: Tue Oct 28 01:00:02 2025 | Cross-referenced by PHPXref 0.7.1 |