- Timestamp:
- 12/03/2025 07:45:02 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-pattern-categories-registry.php
r60904 r61348 163 163 } 164 164 } 165 166 /**167 * Registers a new pattern category.168 *169 * @since 5.5.0170 *171 * @param string $category_name Pattern category name including namespace.172 * @param array $category_properties List of properties for the block pattern.173 * See WP_Block_Pattern_Categories_Registry::register() for174 * accepted arguments.175 * @return bool True if the pattern category was registered with success and false otherwise.176 */177 function register_block_pattern_category( $category_name, $category_properties ) {178 return WP_Block_Pattern_Categories_Registry::get_instance()->register( $category_name, $category_properties );179 }180 181 /**182 * Unregisters a pattern category.183 *184 * @since 5.5.0185 *186 * @param string $category_name Pattern category name including namespace.187 * @return bool True if the pattern category was unregistered with success and false otherwise.188 */189 function unregister_block_pattern_category( $category_name ) {190 return WP_Block_Pattern_Categories_Registry::get_instance()->unregister( $category_name );191 }
Note: See TracChangeset
for help on using the changeset viewer.