Created
April 23, 2025 12:50
-
-
Save xlplugins/9260dca2fffc8d0908cc024735582a7a to your computer and use it in GitHub Desktop.
Funnelkit Checkout: Compatability with plugin WooCommerce international phone input by Alex Masliychuk (alex91ckua)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class WFACP_WooCommerce_International_Phone_Input { | |
| public function __construct() { | |
| add_action( 'wfacp_after_checkout_page_found', [ $this, 'action' ] ); | |
| } | |
| public function action() { | |
| if ( ! $this->is_enabled() ) { | |
| return; | |
| } | |
| WFACP_Common::remove_actions( 'wp_enqueue_scripts', 'Wcipi_Frontend', 'register_js_css' ); | |
| } | |
| public function is_enabled() { | |
| return class_exists( 'Wcipi_Frontend' ); | |
| } | |
| } | |
| new WFACP_WooCommerce_International_Phone_Input(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment