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

WC_Customer_Data_Store_Interface{} WC 1.0

WC Customer Data Store Interface

Functions that must be defined by customer store classes.

Хуков нет.

Возвращает

Null. Ничего.

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

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

Методы

  1. get_last_order( &$customer )
  2. get_order_count( &$customer )
  3. get_total_spent( &$customer )

Код WC_Customer_Data_Store_Interface{} WC 4.6.0

<?php
interface WC_Customer_Data_Store_Interface {

	/**
	 * Gets the customers last order.
	 *
	 * @param WC_Customer $customer Customer object.
	 * @return WC_Order|false
	 */
	public function get_last_order( &$customer );

	/**
	 * Return the number of orders this customer has.
	 *
	 * @param WC_Customer $customer Customer object.
	 * @return integer
	 */
	public function get_order_count( &$customer );

	/**
	 * Return how much money this customer has spent.
	 *
	 * @param WC_Customer $customer Customer object.
	 * @return float
	 */
	public function get_total_spent( &$customer );
}