woocommerce_before_order_itemmeta

The WooCommerce woocommerce before order itemmeta hook.

Description

do_action( 'woocommerce_before_order_itemmeta', (unknown) $item_id, (unknown) $item, (null) $null ); 

Parameters (3)

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

Usage

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

Defined (2)

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

/includes/admin/meta-boxes/views/html-order-shipping.php  
  1. <?php do_action( 'woocommerce_before_order_itemmeta', $item_id, $item, null ) ?> 
/includes/admin/meta-boxes/views/html-order-item.php  
  1. <?php do_action( 'woocommerce_before_order_itemmeta', $item_id, $item, $product ) ?>