Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Created August 22, 2024 09:37
Show Gist options
  • Save shameemreza/8b564f60870e27de1283eb1f79919444 to your computer and use it in GitHub Desktop.
Save shameemreza/8b564f60870e27de1283eb1f79919444 to your computer and use it in GitHub Desktop.
Remove the WooCommerce Continue Shopping Button
// Remove "Product added to cart" message
add_filter( 'wc_add_to_cart_message_html', '__return_null' );
// Remove "Continue Shopping" button
remove_action( 'woocommerce_cart_actions', 'woocommerce_button_continue_shopping', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment