[ 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. param: string $block_name Block type name including namespace. param: array $style_properties Array containing the properties of the style name, label, return: bool True if the block style was registered with success and false otherwise. since: 5.3.0 |
unregister( $block_name, $block_style_name ) X-Ref |
Unregisters a block style of the given block type. param: string $block_name Block type name including namespace. param: string $block_style_name Block style name. return: bool True if the block style was unregistered with success and false otherwise. 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. param: string $block_name Block type name including namespace. param: string $block_style_name Block style name. return: array Registered block style properties. 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. param: string $block_name Block type name including namespace. return: array[] Array whose keys are block style names and whose values are block style properties. 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. param: string $block_name Block type name including namespace. param: string $block_style_name Block style name. return: bool True if the block style is registered, false otherwise. 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: Sun Dec 22 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |