woocommerce_order_item_<get_type>_html

The WooCommerce woocommerce order item get type html hook.

Description

do_action( 'woocommerce_order_item_<get_type>_html', (unknown) $item_id, (unknown) $item, (unknown) $order ); 

Parameters (3)

0. $item_id (unknown)
The item id.
1. $item (unknown)
The item.
2. $order (unknown)
The order.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_order_item_{$get_type}_html', $item_id, $item, $order ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_order_item_<get_type>_html callback 
  2. function action_woocommerce_order_item_get_type_html( $item_id, $item, $order ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "woocommerce_order_item_{$get_type}_html", 'action_woocommerce_order_item_get_type_html', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "woocommerce_order_item_{$get_type}_html", 'action_woocommerce_order_item_get_type_html', 10, 3 ); 

Defined (1)

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

/includes/admin/meta-boxes/views/html-order-items.php  
  1. do_action( 'woocommerce_order_item_' . $item->get_type() . '_html', $item_id, $item, $order );