Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created July 22, 2024 11:43
Show Gist options
  • Save xlplugins/6c2a84b5cc3382840edb9a7d00d233b5 to your computer and use it in GitHub Desktop.
Save xlplugins/6c2a84b5cc3382840edb9a7d00d233b5 to your computer and use it in GitHub Desktop.
Funnelkit Checkout: Flag conflict issue resolved on the checkout page by plugin Country Code For Elementor Form Telephone Field
class WFACP_Compatibility_CountryCodeFor_Elementor_Form_Telephone {
public function __construct() {
add_action( 'wfacp_after_checkout_page_found', [ $this, 'action' ] );
}
public function action() {
add_action( 'wp_enqueue_scripts', function () {
wp_deregister_script( 'ccfef-country-code-library-script' );
wp_deregister_script( 'ccfef-country-code-script' );
wp_deregister_style( 'ccfef-country-code-library-style' );
wp_deregister_style( 'ccfef-country-code-style' );
wp_dequeue_script( 'ccfef-country-code-library-script' );
wp_dequeue_script( 'ccfef-country-code-script' );
wp_dequeue_style( 'ccfef-country-code-library-style' );
wp_dequeue_style( 'ccfef-country-code-style' );
}, 9 );
}
}
new WFACP_Compatibility_CountryCodeFor_Elementor_Form_Telephone();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment