corsonr
4/25/2017 - 10:29 AM

WooCommerce 3 - Remove Stripe "- OR -" separator

WooCommerce 3 - Remove Stripe "- OR -" separator

<?php // Do not include this if already open! Code goes in theme functions.php.

/*
 * Remove the Stripe "- OR -" separator on the cart and checkout pages.
 */
remove_action( 'woocommerce_proceed_to_checkout', array( WC_Stripe_Apple_Pay::instance(), 'display_apple_pay_separator_html' ), 2 );
remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Apple_Pay::instance(), 'display_apple_pay_separator_html' ), 2 );