| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Blocks API: WP_Block_Pattern_Categories_Registry class
| File Size: | 164 lines (4 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| register( $category_name, $category_properties ) X-Ref |
| Registers a pattern category. param: string $category_name Pattern category name including namespace. param: array $category_properties { return: bool True if the pattern was registered with success and false otherwise. |
| unregister( $category_name ) X-Ref |
| Unregisters a pattern category. param: string $category_name Pattern category name including namespace. return: bool True if the pattern was unregistered with success and false otherwise. |
| get_registered( $category_name ) X-Ref |
| Retrieves an array containing the properties of a registered pattern category. param: string $category_name Pattern category name including namespace. return: array|null Registered pattern properties, or `null` if the pattern category is not registered. |
| get_all_registered( $outside_init_only = false ) X-Ref |
| Retrieves all registered pattern categories. param: bool $outside_init_only Return only categories registered outside the `init` action. return: array[] Array of arrays containing the registered pattern categories properties. |
| is_registered( $category_name ) X-Ref |
| Checks if a pattern category is registered. param: string|null $category_name Pattern category name including namespace. return: bool True if the pattern category is registered, false otherwise. |
| 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_Pattern_Categories_Registry The main instance. |
| Generated : Tue May 5 08:20:14 2026 | Cross-referenced by PHPXref |