PHP Interface WC_Customer_Data_Store_Interface

Functions that must be defined by customer store classes.
Author: WooThemes
Afficher le fichier Open project: woocommerce/woocommerce

Méthodes publiques

Méthode Description
get_last_order ( &$customer ) : WC_Order | false Gets the customers last order.
get_order_count ( &$customer ) : integer Return the number of orders this customer has.
get_total_spent ( &$customer ) : float Return how much money this customer has spent.

Method Details

get_last_order() public méthode

Gets the customers last order.
public get_last_order ( &$customer ) : WC_Order | false
Résultat WC_Order | false

get_order_count() public méthode

Return the number of orders this customer has.
public get_order_count ( &$customer ) : integer
Résultat integer

get_total_spent() public méthode

Return how much money this customer has spent.
public get_total_spent ( &$customer ) : float
Résultat float