Server IP : 66.29.132.124 / Your IP : 18.227.105.164 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/diixadigital.com/wp-content/plugins/mailchimp-for-woocommerce/blocks/ |
Upload File : |
<?php define( 'MAILCHIMP_WOOCOMMERCE_NEWSLETTER_VERSION', '1.0.0' ); add_action( 'woocommerce_blocks_loaded', function() { if (!function_exists('mailchimp_is_configured') || !mailchimp_is_configured()) { return; } if (class_exists( '\Automattic\WooCommerce\Blocks\Package' ) && class_exists('\Automattic\WooCommerce\StoreApi\StoreApi') && interface_exists('\Automattic\WooCommerce\Blocks\Integrations\IntegrationInterface')) { add_action( 'woocommerce_store_api_checkout_update_order_from_request', array( 'Mailchimp_Woocommerce_Newsletter_Blocks_Integration', 'order_processed' ), 10, 2 ); add_action( 'woocommerce_store_api_checkout_order_processed', array( 'Mailchimp_Woocommerce_Newsletter_Blocks_Integration', 'order_customer_processed' ) ); require_once dirname( __FILE__ ) . '/woocommerce-blocks-integration.php'; require_once dirname( __FILE__ ) . '/woocommerce-blocks-extend-store-endpoint.php'; add_action( 'woocommerce_blocks_checkout_block_registration', function( $integration_registry ) { $integration_registry->register( new Mailchimp_Woocommerce_Newsletter_Blocks_Integration() ); } ); Mailchimp_Woocommerce_Newsletter_Blocks_Extend_Store_Endpoint::init(); } } );