woocommerce_admin_order_item_values

The WooCommerce woocommerce admin order item values hook.

Description

do_action( 'woocommerce_admin_order_item_values', (null) $null, (unknown) $item, (unknown) $absint ); 

Parameters (3)

0. $null (null) => null
The null.
1. $item (unknown)
The item.
2. $absint (unknown) => absint( $item_id )
The absint.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_admin_order_item_values', $null, $item, $absint ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_admin_order_item_values callback 
  2. function action_woocommerce_admin_order_item_values( $null, $item, $absint ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_admin_order_item_values', 'action_woocommerce_admin_order_item_values', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_admin_order_item_values', 'action_woocommerce_admin_order_item_values', 10, 3 ); 

Defined (4)

The action is defined in the following location(s).

/includes/admin/meta-boxes/views/html-order-shipping.php  
  1. <?php do_action( 'woocommerce_admin_order_item_values', null, $item, absint( $item_id ) ); ?> 
/includes/admin/meta-boxes/views/html-order-refund.php  
  1. <?php do_action( 'woocommerce_admin_order_item_values', null, $refund, $refund->get_id() ); ?> 
/includes/admin/meta-boxes/views/html-order-item.php  
  1. <?php do_action( 'woocommerce_admin_order_item_values', $product, $item, absint( $item_id ) ); ?> 
/includes/admin/meta-boxes/views/html-order-fee.php  
  1. <?php do_action( 'woocommerce_admin_order_item_values', null, $item, absint( $item_id ) ); ?>