woocommerce_ajax_add_order_item_meta

woocommerce_ajax_add_order_item_meta

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_ajax_add_order_item_meta') is found 1 times:

  • /includes/class-wc-ajax.php line 1073
    				$order_notes[ $item_id ] = $product->get_formatted_name();
    
    				// We do not perform any stock operations here because they will be handled when order is moved to a status where stock operations are applied (like processing, completed etc).
    
    				do_action( 'woocommerce_ajax_add_order_item_meta', $item_id, $item, $order );
    			}
    
    			/* translators: %s item name. */
    			$order->add_order_note( sprintf( __( 'Added line items: %s', 'woocommerce' ), implode( ', ', $order_notes ) ), false, true );
    
    			do_action( 'woocommerce_ajax_order_items_added', $added_items, $order );