Change ‘Return To Store’ text button in WooCommerce

WooCommerce version 2.6 has brought out a new text filter that lets you change the text of ‘Return To Store’ on the button that appears on the cart page when the cart is empty. The filter is called woocommerce_return_to_shop_text and this is how you can use it.

add_filter('woocommerce_return_to_shop_text', 'prefix_store_button');
/**
 * Change 'Return to Shop' text on button
 */
function prefix_store_button() {
        $store_button = "Back to Store"; // Change text as required

        return $store_button;
}

Add the above snippet in your themes functions.php file.

Leave all Comment