Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created December 19, 2025 14:14
Show Gist options
  • Select an option

  • Save xlplugins/86994f7d09d09b820d926b22a2d927c7 to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/86994f7d09d09b820d926b22a2d927c7 to your computer and use it in GitHub Desktop.
Remove CSS of PayPal
add_action( 'wfacp_after_checkout_page_found', function() {
// Only proceed if we're on a FunnelKit checkout page
if ( ! class_exists( 'WFACP_Common' ) ) {
return;
}
$wfacp_id = WFACP_Common::get_id();
if ( empty( $wfacp_id ) ) {
return;
}
// Remove the wfacp_internal_css action from PayPal gateway
if ( class_exists( 'PPCP_Paypal_Checkout_For_Woocommerce_Button_Manager' ) ) {
$button_manager = PPCP_Paypal_Checkout_For_Woocommerce_Button_Manager::instance();
if ( $button_manager && has_action( 'wfacp_internal_css', array( $button_manager, 'wpg_internal_css' ) ) ) {
remove_action( 'wfacp_internal_css', array( $button_manager, 'wpg_internal_css' ) );
}
}
}, 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment