Created
December 19, 2025 14:14
-
-
Save xlplugins/86994f7d09d09b820d926b22a2d927c7 to your computer and use it in GitHub Desktop.
Remove CSS of PayPal
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
| 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