• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / includes/class-wc-order-item.php


Lines:

1 to 35 of 35
<?php

/**
 * Order Item
 *
 * A class which represents an item within an order and handles CRUD.
 * Uses ArrayAccess to be BW compatible with WC_Orders::get_items().
 *
 * @package WooCommerce\Classes
 * @version 3.0.0
 * @since   3.0.0
 */

defined( 'ABSPATH' ) || exit;

/* class WC_Order_Item */
/* function WC_Order_Item::__construct() – Constructor. */
/* function WC_Order_Item::apply_changes() – Merge changes with data and clear. */
/* function WC_Order_Item::get_order_id() – Get order ID this meta belongs to. */
/* function WC_Order_Item::get_name() – Get order item name. */
/* function WC_Order_Item::get_type() – Get order item type. Overridden by child classes. */
/* function WC_Order_Item::get_quantity() – Get quantity. */
/* function WC_Order_Item::get_tax_status() – Get tax status. */
/* function WC_Order_Item::get_tax_class() – Get tax class. */
/* function WC_Order_Item::get_order() – Get parent order object. */
/* function WC_Order_Item::set_order_id() – Set order ID. */
/* function WC_Order_Item::set_name() – Set order item name. */
/* function WC_Order_Item::is_type() – Type checking. */
/* function WC_Order_Item::calculate_taxes() – Calculate item taxes. */
/* function WC_Order_Item::get_formatted_meta_data() – Expands things like term slugs before return. */
/* function WC_Order_Item::offsetSet() – OffsetSet for ArrayAccess. */
/* function WC_Order_Item::offsetUnset() – OffsetUnset for ArrayAccess. */
/* function WC_Order_Item::offsetExists() – OffsetExists for ArrayAccess. */
/* function WC_Order_Item::offsetGet() – OffsetGet for ArrayAccess. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: includes/class-wc-order-item.php
      Plugin ref: WooCommerce
      Version: 5.0.0
      Deprecated?: No
      API Letters: C,I,O,W

      Published: 26th November 2019 | Last updated: 10th December 2020

      Primary Sidebar

      Information

      File name: includes/class-wc-order-item.php
      Plugin ref: WooCommerce
      Version: 5.0.0
      Deprecated?: No
      API Letters: C,I,O,W

      includes

      Footer

      WooCommerce a2z
      WooCommerce a2z
      WooCommerce
      WordPress 5.6.2
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  woocommerce.wp-a2z.org
      © Copyright WooCommerce a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites