Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* @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