woocommerce_admin_order_item_types

woocommerce_admin_order_item_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_admin_order_item_types') is found 1 times:

  • /includes/admin/meta-boxes/views/html-order-items.php line 24
     
    global $wpdb;
    
    $payment_gateway     = wc_get_payment_gateway_by_order( $order );
    $line_items          = $order->get_items( apply_filters( 'woocommerce_admin_order_item_types', 'line_item' ) );
    $discounts           = $order->get_items( 'discount' );
    $line_items_fee      = $order->get_items( 'fee' );
    $line_items_shipping = $order->get_items( 'shipping' );
    
    if ( wc_tax_enabled() ) {
    	$order_taxes      = $order->get_taxes();