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 ); }
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-includes/class-wp-block-pattern-categories-registry.php:1) in /htdocs/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 1563

Fatal error: Uncaught Error: Call to undefined function register_block_pattern_category() in /htdocs/wp-includes/block-patterns.php:38 Stack trace: #0 /htdocs/wp-includes/class-wp-hook.php(324): _register_core_block_patterns_and_categories('') #1 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(Object(Automattic\Jetpack\Forms\ContactForm\Contact_Form_Plugin), Array) #2 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /htdocs/wp-settings.php(704): do_action('init') #4 /htdocs/wp-config.php(88): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-includes/block-patterns.php on line 38