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:

functions.php
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.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'woocommerce' ) ) templates/cart/cart-empty.php:35
  2. TI WooCommerce Wishlist icon TI WooCommerce Wishlist100,000+ installs apply_filters( 'woocommerce_return_to_shop_text', __( 'Return To Shop', 'ti-woocommerce-wishlist' ) ) templates/ti-wishlist-empty.php:33
  3. ShopEngine icon ShopEngine90,000+ installs apply_filters( 'woocommerce_return_to_shop_text', __('Return to shop', 'shopengine') ) core/page-templates/screens/content-cart.php:38
  4. ShopEngine Gutenberg WooCommerce Builder Blocks Addon icon 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
  5. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_return_to_shop_text', __('Return to shop', 'shopbuild') ) public/woocommerce/cart/cart-empty.php:44
  6. Noah Shop Builder for WooCommerce icon 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
  7. Shopready icon Shopready100+ installs apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'shopready-elementor-addon' ) ) src/extension/templates/tpl/cart/cart-empty.php:30
  8. ShopMaker icon ShopMaker90+ installs apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'shop-maker' ) ) classes/widgets/sm-cart-redirect.php:358
  9. Quote Requests for WooCommerce icon Quote Requests for WooCommerce10+ installs apply_filters( 'woocommerce_return_to_shop_text', $default_text ) src/functions/woocommerce.php:86
  10. Ajax instant buy checkout for WooCommerce icon 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
  11. Cresta Checkout for WooCommerce icon 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
  12. MCOD Minimalist Checkout for WooCommerce icon 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
  13. Bazario icon 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.