Skip to content

Instantly share code, notes, and snippets.

View rjphnx's full-sized avatar

r2 rjphnx

  • United States
View GitHub Profile
@BurlesonBrad
BurlesonBrad / move-proceed-to-checkout.php
Last active November 28, 2020 17:41
Put Checkout button next to the Update Cart button (AWESOME on mobile!!) https://bradgriffin.me/proceed-to-checkout/
add_action( 'woocommerce_cart_actions', 'move_proceed_button' );
function move_proceed_button( $checkout ) {
echo '<a href="' . esc_url( WC()->cart->get_checkout_url() ) . '" class="checkout-button button alt wc-forward" >' . __( 'Proceed to Checkout', 'woocommerce' ) . '</a>';
}