Warning: Declaration of AU_Install_Skin::feedback($string) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args) in /www/htdocs/w01451ca/developer.autohaus-rinner.de/wp-content/plugins/woocommerce-role-based-prices/inc/marketpress-autoupdater/class-MarketPress_Auto_Update.php on line 722
use Automattic\WooCommerce\Blocks\Package;
use Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields;
if ( ! function_exists( 'woocommerce_register_additional_checkout_field' ) ) {
/**
* Register a checkout field.
*
* @param array $options Field arguments. See CheckoutFields::register_checkout_field() for details.
* @throws \Exception If field registration fails.
*/
function woocommerce_register_additional_checkout_field( $options ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
// Check if `woocommerce_blocks_loaded` ran. If not then the CheckoutFields class will not be available yet.
// In that case, re-hook `woocommerce_blocks_loaded` and try running this again.
$woocommerce_blocks_loaded_ran = did_action( 'woocommerce_blocks_loaded' );
if ( ! $woocommerce_blocks_loaded_ran ) {
add_action(
'woocommerce_blocks_loaded',
function () use ( $options ) {
woocommerce_register_additional_checkout_field( $options );
}
);
return;
}
$checkout_fields = Package::container()->get( CheckoutFields::class );
$result = $checkout_fields->register_checkout_field( $options );
if ( is_wp_error( $result ) ) {
throw new \Exception( esc_attr( $result->get_error_message() ) );
}
}
}
if ( ! function_exists( '__experimental_woocommerce_blocks_register_checkout_field' ) ) {
/**
* Register a checkout field.
*
* @param array $options Field arguments. See CheckoutFields::register_checkout_field() for details.
* @throws \Exception If field registration fails.
* @deprecated 5.6.0 Use woocommerce_register_additional_checkout_field() instead.
*/
function __experimental_woocommerce_blocks_register_checkout_field( $options ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
wc_deprecated_function( __FUNCTION__, '8.9.0', 'woocommerce_register_additional_checkout_field' );
woocommerce_register_additional_checkout_field( $options );
}
}
if ( ! function_exists( '__internal_woocommerce_blocks_deregister_checkout_field' ) ) {
/**
* Deregister a checkout field.
*
* @param string $field_id Field ID.
* @throws \Exception If field deregistration fails.
* @internal
*/
function __internal_woocommerce_blocks_deregister_checkout_field( $field_id ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
$checkout_fields = Package::container()->get( CheckoutFields::class );
$result = $checkout_fields->deregister_checkout_field( $field_id );
if ( is_wp_error( $result ) ) {
throw new \Exception( esc_attr( $result->get_error_message() ) );
}
}
}
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w01451ca/developer.autohaus-rinner.de/wp-content/plugins/woocommerce-role-based-prices/inc/marketpress-autoupdater/class-MarketPress_Auto_Update.php:716) in /www/htdocs/w01451ca/developer.autohaus-rinner.de/wp-content/plugins/yith-woocommerce-compare-premium/includes/class.yith-woocompare-frontend-premium.php on line 279
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w01451ca/developer.autohaus-rinner.de/wp-content/plugins/woocommerce-role-based-prices/inc/marketpress-autoupdater/class-MarketPress_Auto_Update.php:716) in /www/htdocs/w01451ca/developer.autohaus-rinner.de/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w01451ca/developer.autohaus-rinner.de/wp-content/plugins/woocommerce-role-based-prices/inc/marketpress-autoupdater/class-MarketPress_Auto_Update.php:716) in /www/htdocs/w01451ca/developer.autohaus-rinner.de/wp-includes/pluggable.php on line 1438