woocommerce_return_to_shop_redirect хук-фильтрWC 1.0

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

add_filter( 'woocommerce_return_to_shop_redirect', 'wp_kama_woocommerce_return_to_shop_redirect_filter' );

/**
 * Function for `woocommerce_return_to_shop_redirect` filter-hook.
 * 
 * @param  $wc_get_page_permalink 
 *
 * @return 
 */
function wp_kama_woocommerce_return_to_shop_redirect_filter( $wc_get_page_permalink ){

	// filter...
	return $wc_get_page_permalink;
}
$wc_get_page_permalink
-

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

В файле: /templates/myaccount/orders.php
woocommerce_return_to_shop_redirect
woocommerce/templates/myaccount/orders.php 100
<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"><?php esc_html_e( 'Browse products', 'woocommerce' ); ?></a>
woocommerce/templates/myaccount/downloads.php 39
<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
woocommerce/templates/cart/cart-empty.php 27
<a class="button wc-backward" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">

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

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