Created
April 20, 2026 14:52
-
-
Save xlplugins/545667c693f5b82515255924aebebbeb to your computer and use it in GitHub Desktop.
Register Paypal btn before the apple and gpay at funnelkit checkout
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( 'init', function () { | |
| if( class_exists('\FunnelKit\PayPal\Compatibilities\FunnelKit\Checkout') ){ | |
| $instance = \FunnelKit\PayPal\Compatibilities\FunnelKit\Checkout::get_instance(); | |
| remove_filter( 'wfacp_smart_buttons', array( $instance, 'register_smart_button' ), 99 ); | |
| add_filter( 'wfacp_smart_buttons', array( $instance, 'register_smart_button' ), 10 ); | |
| } | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment