woocommerce_update_order_item

woocommerce_update_order_item

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_update_order_item') is found 2 times:

  • /includes/data-stores/abstract-wc-order-item-type-data-store.php line 127
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
        }
        $item->apply_changes();
        $this->clear_cache( $item );
     
        do_action( 'woocommerce_update_order_item', $item->get_id(), $item, $item->get_order_id() );
    }
     
    /**
     * Remove an order item from the database.
     *
     * @param WC_Order_Item $item Order item object.
  • /includes/wc-order-item-functions.php line 62
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
        if ( false === $update ) {
            return false;
        }
     
        do_action( 'woocommerce_update_order_item', $item_id, $args );
     
        return true;
    }
     
    /**
     * Delete an item from the order it belongs to based on item id.

See this hook used in plugins: