woocommerce_admin_order_totals_after_discount
Использование
add_action( 'woocommerce_admin_order_totals_after_discount', 'wp_kama_woocommerce_admin_order_totals_after_discount_action' ); /** * Function for `woocommerce_admin_order_totals_after_discount` action-hook. * * @param $order_id * * @return void */ function wp_kama_woocommerce_admin_order_totals_after_discount_action( $order_id ){ // action... }
- $order_id
- -
Где вызывается хук
woocommerce_admin_order_totals_after_discount
woocommerce/includes/admin/meta-boxes/views/html-order-items.php 189
<?php do_action( 'woocommerce_admin_order_totals_after_discount', $order->get_id() ); ?>