WC_Customer_Data_Store_Session::get_total_spent()
Return how much money this customer has spent.
Метод класса: WC_Customer_Data_Store_Session{}
Хуков нет.
Возвращает
float
.
Использование
$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session(); $WC_Customer_Data_Store_Session->get_total_spent( $customer );
- $customer(WC_Customer) (обязательный) (передается по ссылке — &)
- Customer object.
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Customer_Data_Store_Session::get_total_spent() WC Customer Data Store Session::get total spent WC 8.7.0
public function get_total_spent( &$customer ) { return 0; }