woocommerce_order_item_meta_end action-hookWC 2.3.0

Allow other plugins to add additional product information.

Usage

add_action( 'woocommerce_order_item_meta_end', 'wp_kama_woocommerce_order_item_meta_end_action', 10, 4 );

/**
 * Function for `woocommerce_order_item_meta_end` action-hook.
 * 
 * @param int                   $item_id    The item ID.
 * @param WC_Order_Item_Product $item       The item object.
 * @param WC_Order              $order      The order object.
 * @param bool                  $plain_text Whether the email is plain text or not.
 *
 * @return void
 */
function wp_kama_woocommerce_order_item_meta_end_action( $item_id, $item, $order, $plain_text ){

	// action...
}
$item_id(int)
The item ID.
$item(WC_Order_Item_Product)
The item object.
$order(WC_Order)
The order object.
$plain_text(true|false)
Whether the email is plain text or not.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

In file: /templates/emails/email-order-items.php
woocommerce_order_item_meta_end
woocommerce/templates/emails/email-order-items.php 119
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text );
woocommerce/templates/checkout/form-pay.php 49
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false );
woocommerce/templates/order/order-details-item.php 50
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false );
woocommerce/templates/emails/plain/email-order-items.php 106
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text );
woocommerce/templates/emails/email-order-items.php 181
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text );

Where the hook is used in WooCommerce

Usage not found.