WP_Block_Pattern_Categories_Registry The main instance. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } } /** * Registers a new pattern category. * * @since 5.5.0 * * @param string $category_name Pattern category name including namespace. * @param array $category_properties List of properties for the block pattern. * See WP_Block_Pattern_Categories_Registry::register() for * accepted arguments. * @return bool True if the pattern category was registered with success and false otherwise. */ function register_block_pattern_category( $category_name, $category_properties ) { return WP_Block_Pattern_Categories_Registry::get_instance()->register( $category_name, $category_properties ); } /** * Unregisters a pattern category. * * @since 5.5.0 * * @param string $category_name Pattern category name including namespace. * @return bool True if the pattern category was unregistered with success and false otherwise. */ function unregister_block_pattern_category( $category_name ) { return WP_Block_Pattern_Categories_Registry::get_instance()->unregister( $category_name ); }
Fatal error: Uncaught Error: Class "Kirki\Compatibility\Modules" not found in /htdocs/wp-content/plugins/kirki/kirki.php:73 Stack trace: #0 /htdocs/wp-settings.php(545): include_once() #1 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #2 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #3 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #4 /htdocs/index.php(17): require('/htdocs/wp-blog...') #5 {main} thrown in /htdocs/wp-content/plugins/kirki/kirki.php on line 73