woocommerce_return_to_shop_text хук-фильтрWC 4.6.0

Filter "Return To Shop" text.

Использование

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(строка)
Default text.

Список изменений

С версии 4.6.0 Введена.

Где вызывается хук

В файле: /templates/cart/cart-empty.php
woocommerce_return_to_shop_text
woocommerce/templates/cart/cart-empty.php 35
echo esc_html( apply_filters( 'woocommerce_return_to_shop_text', __( 'Return to shop', 'woocommerce' ) ) );

Где используется хук в WooCommerce

Использование не найдено.