WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
класс не описан

WC_Abstract_Order_Data_Store_Interface{} WC 1.0

WC Order Data Store Interface

Functions that must be defined by order store classes.

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WC_Abstract_Order_Data_Store_Interface = new WC_Abstract_Order_Data_Store_Interface();
// use class methods

Методы

  1. read_items( $order, $type )
  2. delete_items( $order, $type = null )
  3. get_payment_token_ids( $order )
  4. update_payment_token_ids( $order, $token_ids )

Код WC_Abstract_Order_Data_Store_Interface{} WC 4.6.0

<?php
interface WC_Abstract_Order_Data_Store_Interface {

	/**
	 * Read order items of a specific type from the database for this order.
	 *
	 * @param WC_Order $order Order object.
	 * @param string   $type Order item type.
	 * @return array
	 */
	public function read_items( $order, $type );

	/**
	 * Remove all line items (products, coupons, shipping, taxes) from the order.
	 *
	 * @param WC_Order $order Order object.
	 * @param string   $type Order item type. Default null.
	 */
	public function delete_items( $order, $type = null );

	/**
	 * Get token ids for an order.
	 *
	 * @param WC_Order $order Order object.
	 * @return array
	 */
	public function get_payment_token_ids( $order );

	/**
	 * Update token ids for an order.
	 *
	 * @param WC_Order $order Order object.
	 * @param array    $token_ids Token IDs.
	 */
	public function update_payment_token_ids( $order, $token_ids );
}