woocommerce_admin_order_item_coupon_url
Использование
add_filter( 'woocommerce_admin_order_item_coupon_url', 'wp_kama_woocommerce_admin_order_item_coupon_url_filter', 10, 3 ); /** * Function for `woocommerce_admin_order_item_coupon_url` filter-hook. * * @param $add_query_arg * @param $item * @param $order * * @return */ function wp_kama_woocommerce_admin_order_item_coupon_url_filter( $add_query_arg, $item, $order ){ // filter... return $add_query_arg; }
- $add_query_arg
- -
- $item
- -
- $order
- -
Где вызывается хук
woocommerce_admin_order_item_coupon_url
woocommerce/includes/admin/meta-boxes/views/html-order-items.php 127-138
$post_url = apply_filters( 'woocommerce_admin_order_item_coupon_url', add_query_arg( array( 'post' => $post_id, 'action' => 'edit', ), admin_url( 'post.php' ) ), $item, $order );