[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Blocks API: WP_Block_Type_Registry class
File Size: | 201 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
register( $name, $args = array() X-Ref |
Registers a block type. return: WP_Block_Type|false The registered block type on success, or false on failure. param: string|WP_Block_Type $name Block type name including namespace, or alternatively param: array $args Optional. Array of block type arguments. Accepts any public property |
unregister( $name ) X-Ref |
Unregisters a block type. return: WP_Block_Type|false The unregistered block type on success, or false on failure. param: string|WP_Block_Type $name Block type name including namespace, or alternatively |
get_registered( $name ) X-Ref |
Retrieves a registered block type. return: WP_Block_Type|null The registered block type, or null if it is not registered. param: string $name Block type name including namespace. |
get_all_registered() X-Ref |
Retrieves all registered block types. return: WP_Block_Type[] Associative array of `$block_type_name => $block_type` pairs. |
is_registered( $name ) X-Ref |
Checks if a block type is registered. return: bool True if the block type is registered, false otherwise. param: string $name Block type name including namespace. |
__wakeup() X-Ref |
No description |
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_Type_Registry The main instance. |
Generated : Sat Dec 21 08:20:01 2024 | Cross-referenced by PHPXref |