woocommerce_order_item_meta_start
The WordPress Core woocommerce order item meta start hook.
Description
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.
- // run the action
- do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order );
- The following example is for adding a hook callback.
- // define the woocommerce_order_item_meta_start callback
- function action_woocommerce_order_item_meta_start( $item_id, $item, $order ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'woocommerce_order_item_meta_start', 'action_woocommerce_order_item_meta_start', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'woocommerce_order_item_meta_start', 'action_woocommerce_order_item_meta_start', 10, 3 );
Defined (4)
The action is defined in the following location(s).
- /templates/checkout/form-pay.php
- do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order );
- /templates/emails/email-order-items.php
- do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text );
- /templates/emails/plain/email-order-items.php
- do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text );
- /templates/order/order-details-item.php
- do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order );