Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created April 23, 2025 12:50
Show Gist options
  • Select an option

  • Save xlplugins/9260dca2fffc8d0908cc024735582a7a to your computer and use it in GitHub Desktop.

Select an option

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)
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