Forked from MinaPansuriya/WooCommerce Change "Continue Shopping" Message on Cart Page
Last active
September 25, 2017 15:52
-
-
Save dherbold/1a622787c613e6cef587ab6ab0c672c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'wc_add_to_cart_message', 'dfh_change_cart_message', 10, 2 ); | |
function dfh_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