woocommerce_return_to_shop_text
Filter "Return To Shop" text.
Usage
add_filter( 'woocommerce_return_to_shop_text', 'wp_kama_woocommerce_return_to_shop_text_filter' ); /** * Function for `woocommerce_return_to_shop_text` filter-hook. * * @param string $default_text Default text. * * @return string */ function wp_kama_woocommerce_return_to_shop_text_filter( $default_text ){ // filter... return $default_text; }
- $default_text(string)
- Default text.
Changelog
Since 4.6.0 | Introduced. |
Where the hook is called
In file: /templates/cart/cart-empty.php
woocommerce/templates/cart/cart-empty.php 35
echo esc_html( apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'woocommerce' ) ) );