WC_Customer_Data_Store_Interface::get_total_spentpublicWC 1.0

Return how much money this customer has spent.

Метод класса: WC_Customer_Data_Store_Interface{}

Хуков нет.

Возвращает

float.

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

$WC_Customer_Data_Store_Interface = new WC_Customer_Data_Store_Interface();
$WC_Customer_Data_Store_Interface->get_total_spent( $customer );
$customer(WC_Customer) (обязательный) (передается по ссылке — &)
Customer object.

Код WC_Customer_Data_Store_Interface::get_total_spent() WC 9.9.4

public function get_total_spent( &$customer );