, /* translators: %s: Block bindings source name. */ sprintf( __( 'Block bindings source "%s" already registered.' ), $source_name ), '6.5.0' ); return false; } // Validates that the source properties contain the label. if ( ! isset( $source_properties['label'] ) ) { _doing_it_wrong( __METHOD__, __( 'The $source_properties must contain a "label".' ), '6.5.0' ); return false; } // Validates that the source properties contain the get_value_callback. if ( ! isset( $source_properties['get_value_callback'] ) ) { _doing_it_wrong( __METHOD__, __( 'The $source_properties must contain a "get_value_callback".' ), '6.5.0' ); return false; } // Validates that the get_value_callback is a valid callback. if ( ! is_callable( $source_properties['get_value_callback'] ) ) { _doing_it_wrong( __METHOD__, __( 'The "get_value_callback" parameter must be a valid callback.' ), '6.5.0' ); return false; } // Validates that the uses_context parameter is an array. if ( isset( $source_properties['uses_context'] ) && ! is_array( $source_properties['uses_context'] ) ) { _doing_it_wrong( __METHOD__, __( 'The "uses_context" parameter must be an array.' ), '6.5.0' ); return false; } if ( ! empty( array_diff( array_keys( $source_properties ), $this->allowed_source_properties ) ) ) { _doing_it_wrong( __METHOD__, __( 'The $source_properties array contains invalid properties.' ), '6.5.0' ); return false; } $source = new WP_Block_Bindings_Source( $source_name, $source_properties ); $this->sources[ $source_name ] = $source; return $source; } /** * Unregisters a block bindings source. * * @since 6.5.0 * * @param string $source_name Block bindings source name including namespace. * @return WP_Block_Bindings_Source|false The unregistered block bindings source on success and `false` otherwise. */ public function unregister( string $source_name ) { if ( ! $this->is_registered( $source_name ) ) { _doing_it_wrong( __METHOD__, /* translators: %s: Block bindings source name. */ sprintf( __( 'Block binding "%s" not found.' ), $source_name ), '6.5.0' ); return false; } $unregistered_source = $this->sources[ $source_name ]; unset( $this->sources[ $source_name ] ); return $unregistered_source; } /** * Retrieves the list of all registered block bindings sources. * * @since 6.5.0 * * @return WP_Block_Bindings_Source[] The array of registered sources. */ public function get_all_registered() { return $this->sources; } /** * Retrieves a registered block bindings source. * * @since 6.5.0 * * @param string $source_name The name of the source. * @return WP_Block_Bindings_Source|null The registered block bindings source, or `null` if it is not registered. */ public function get_registered( string $source_name ) { if ( ! $this->is_registered( $source_name ) ) { return null; } return $this->sources[ $source_name ]; } /** * Checks if a block bindings source is registered. * * @since 6.5.0 * * @param string|null $source_name The name of the source. * @return bool `true` if the block bindings source is registered, `false` otherwise. */ public function is_registered( $source_name ) { return isset( $source_name, $this->sources[ $source_name ] ); } /** * Wakeup magic method. * * @since 6.5.0 */ public function __wakeup() { if ( ! $this->sources ) { return; } if ( ! is_array( $this->sources ) ) { throw new UnexpectedValueException(); } foreach ( $this->sources as $value ) { if ( ! $value instanceof WP_Block_Bindings_Source ) { throw new UnexpectedValueException(); } } } /** * Utility method to retrieve the main instance of the class. * * The instance will be created if it does not exist yet. * * @since 6.5.0 * * @return WP_Block_Bindings_Registry The main instance. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } }
Warning: Class "Automattic\WooCommerce\StoreApi\Routes\V1\ProductCategories" not found in /htdocs/keur.keurarameinformatique.com/wp-content/plugins/woocommerce/src/StoreApi/deprecated.php on line 73

Fatal error: Uncaught Error: Class "WP_HTML_Attribute_Token" not found in /htdocs/keur.keurarameinformatique.com/wp-includes/html-api/class-wp-html-tag-processor.php:2234 Stack trace: #0 /htdocs/keur.keurarameinformatique.com/wp-includes/html-api/class-wp-html-tag-processor.php(1001): WP_HTML_Tag_Processor->parse_next_attribute() #1 /htdocs/keur.keurarameinformatique.com/wp-includes/html-api/class-wp-html-tag-processor.php(937): WP_HTML_Tag_Processor->base_class_next_token() #2 /htdocs/keur.keurarameinformatique.com/wp-includes/kses.php(1624): WP_HTML_Tag_Processor->next_token() #3 /htdocs/keur.keurarameinformatique.com/wp-includes/kses.php(1455): wp_kses_hair(' href="https://...', Array) #4 /htdocs/keur.keurarameinformatique.com/wp-includes/kses.php(1405): wp_kses_attr('a', ' href="https://...', Array, Array) #5 /htdocs/keur.keurarameinformatique.com/wp-includes/kses.php(1282): wp_kses_split2('<a href="https:...', Array, Array) #6 [internal function]: _wp_kses_split_callback(Array) #7 /htdocs/keur.keurarameinformatique.com/wp-includes/kses.php(1212): preg_replace_callback('~\n\t( ...', '_wp_kses_split_...', 'You should crea...') #8 /htdocs/keur.keurarameinformatique.com/wp-includes/kses.php(967): wp_kses_split('You should crea...', Array, Array) #9 /htdocs/keur.keurarameinformatique.com/wp-content/themes/digitek/inc/admin/theme_options.php(481): wp_kses('You should crea...', Array) #10 /htdocs/keur.keurarameinformatique.com/wp-content/themes/digitek/functions.php(144): require_once('/htdocs/keur.ke...') #11 /htdocs/keur.keurarameinformatique.com/wp-content/themes/digitek/functions.php(22): Digitek_Theme_Class->include_functions() #12 /htdocs/keur.keurarameinformatique.com/wp-content/themes/digitek/functions.php(856): Digitek_Theme_Class->__construct() #13 /htdocs/keur.keurarameinformatique.com/wp-settings.php(739): include('/htdocs/keur.ke...') #14 /htdocs/keur.keurarameinformatique.com/wp-config.php(111): require_once('/htdocs/keur.ke...') #15 /htdocs/keur.keurarameinformatique.com/wp-load.php(50): require_once('/htdocs/keur.ke...') #16 /htdocs/keur.keurarameinformatique.com/wp-blog-header.php(13): require_once('/htdocs/keur.ke...') #17 /htdocs/keur.keurarameinformatique.com/index.php(17): require('/htdocs/keur.ke...') #18 {main} thrown in /htdocs/keur.keurarameinformatique.com/wp-includes/html-api/class-wp-html-tag-processor.php on line 2234