Skip to content

Instantly share code, notes, and snippets.

@stuartduff
Created October 27, 2020 10:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartduff/322ae9a0c52896b920daaf640c2e37cc to your computer and use it in GitHub Desktop.
Save stuartduff/322ae9a0c52896b920daaf640c2e37cc to your computer and use it in GitHub Desktop.
Move the WooCommerce Stripe payment request butttons.
remove_action( ‘woocommerce_after_add_to_cart_quantity’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 1 );
add_action( ‘woocommerce_simple_add_to_cart’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment