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

Generates a URL to view an order from the my account page.

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

add_filter( 'woocommerce_get_view_order_url', 'wp_kama_woocommerce_get_view_order_url_filter', 10, 2 );

/**
 * Function for `woocommerce_get_view_order_url` filter-hook.
 * 
 * @param  $wc_get_endpoint_url 
 * @param  $that                
 *
 * @return 
 */
function wp_kama_woocommerce_get_view_order_url_filter( $wc_get_endpoint_url, $that ){

	// filter...
	return $wc_get_endpoint_url;
}
$wc_get_endpoint_url
-
$that
-

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

WC_Order::get_view_order_url()
woocommerce_get_view_order_url
woocommerce/includes/class-wc-order.php 1681
return apply_filters( 'woocommerce_get_view_order_url', wc_get_endpoint_url( 'view-order', $this->get_id(), wc_get_page_permalink( 'myaccount' ) ), $this );

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

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