WC_Customer_Data_Store_Interface::get_total_spent()
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 Customer Data Store Interface::get total spent WC 8.7.0
public function get_total_spent( &$customer );