woocommerce_get_edit_order_url хук-фильтрWC 3.3.0

Filter the URL to edit the order in the backend.

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

add_filter( 'woocommerce_get_edit_order_url', 'wp_kama_woocommerce_get_edit_order_url_filter', 10, 2 );

/**
 * Function for `woocommerce_get_edit_order_url` filter-hook.
 * 
 * @param  $edit_url 
 * @param  $that     
 *
 * @return 
 */
function wp_kama_woocommerce_get_edit_order_url_filter( $edit_url, $that ){

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

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

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

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

WC_Order::get_edit_order_url()
woocommerce_get_edit_order_url
woocommerce/includes/class-wc-order.php 1922
return apply_filters( 'woocommerce_get_edit_order_url', $edit_url, $this );

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

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