Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save xlplugins/545667c693f5b82515255924aebebbeb to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/545667c693f5b82515255924aebebbeb to your computer and use it in GitHub Desktop.
Register Paypal btn before the apple and gpay at funnelkit checkout
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