WordPress filter hook
woocommerce_return_to_shop_text
Defined by WooCommerce and fired by 13 plugins in total, running on 7.2M+ sites between them.
“Filter "Return To Shop" text.”
How to use woocommerce_return_to_shop_text
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'woocommerce_return_to_shop_text', function( $html ) {
// Change $html here.
return $html;
}, 10, 1 );Argument names come from ShopEngine Gutenberg WooCommerce Builder Blocks Addon's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
13 plugins that fire woocommerce_return_to_shop_text
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'woocommerce' ) )templates/cart/cart-empty.php:35 -
TI WooCommerce Wishlist100,000+ installs
apply_filters( 'woocommerce_return_to_shop_text', __( 'Return To Shop', 'ti-woocommerce-wishlist' ) )templates/ti-wishlist-empty.php:33 -
ShopEngine90,000+ installs
apply_filters( 'woocommerce_return_to_shop_text', __('Return to shop', 'shopengine') )core/page-templates/screens/content-cart.php:38 -
ShopEngine Gutenberg WooCommerce Builder Blocks Addon3,000+ installs
apply_filters( 'woocommerce_return_to_shop_text', esc_html($settings['shopengine_continue_shopping']['desktop']) )blocks/cart-table/cart.php:165 -
StoreBuild400+ installs
apply_filters( 'woocommerce_return_to_shop_text', __('Return to shop', 'shopbuild') )public/woocommerce/cart/cart-empty.php:44 -
Noah Shop Builder for WooCommerce300+ installs
apply_filters( 'woocommerce_return_to_shop_text', '' !== $noah_text ? $noah_text : __( 'Return to shop', 'noah-shop-builder-for-woocommerce' ) )build/blocks/return-to-shop/render.php:28 -
Shopready100+ installs
apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'shopready-elementor-addon' ) )src/extension/templates/tpl/cart/cart-empty.php:30 -
ShopMaker90+ installs
apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'shop-maker' ) )classes/widgets/sm-cart-redirect.php:358 -
Quote Requests for WooCommerce10+ installs
apply_filters( 'woocommerce_return_to_shop_text', $default_text )src/functions/woocommerce.php:86 -
Ajax instant buy checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'woocommerce' ) )template/mono-checkout.php:110 -
Cresta Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_return_to_shop_text', __( 'Back to the shop', 'cresta-checkout-for-woocommerce' ) )templates/wc/cart/cart-empty.php:20 -
MCOD Minimalist Checkout for WooCommerceFewer than 10 installs
apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'mcod-minimalist-checkout-for-woocommerce' ) )templates/woocommerce/cart/cart-empty.php:50 -
BazarioFewer than 10 installs
apply_filters( 'woocommerce_return_to_shop_text', esc_html($settings['bazario_cart_continue_shopping_btn']) )elements/widgets/cart-products/cart.php:165
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.