Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MinaPansuriya/edf3dd9f4d679e20df45239f4ca16a72 to your computer and use it in GitHub Desktop.
Save MinaPansuriya/edf3dd9f4d679e20df45239f4ca16a72 to your computer and use it in GitHub Desktop.
/**
* @Title:WooCommerce Change "Continue Shopping" Message on Cart Page
* @Author: Mina Pansuriya
* @Website: http://minapansuriya.com
*/
add_filter( 'wc_add_to_cart_message', 'pbs_change_cart_message', 10, 2 );
function pbs_change_cart_message( $cart_message, $product_id ) {
if(strpos($cart_message, "Continue Shopping") !== false)
{
$cart_message = str_replace("Continue Shopping","Shop More",$cart_message);
}
return$cart_message;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment