Updating the “Return to shop” button text was made even easier with the new WooCommerce 4.6 update. We can now use the filter woocommerce_return_to_shop_text.

add_filter('woocommerce_return_to_shop_text', 'wpharvest_return_to_shop_text'); function wpharvest_return_to_shop_text(){ return "Continue shopping"; }
Code language: JavaScript (javascript)

Hope this snippet helped you, and if it ever stops working, please let me know and I will update it.

Published by Dragos Micu


Leave a Reply

Your email address will not be published. Required fields are marked *