WC_Customer_Data_Store_Interface::get_total_spent()publicWC 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 8.7.0

public function get_total_spent( &$customer );