WC_Customer_Data_Store_Session::get_order_count()
Return the number of orders this customer has.
Метод класса: WC_Customer_Data_Store_Session{}
Хуков нет.
Возвращает
Int
.
Использование
$WC_Customer_Data_Store_Session = new WC_Customer_Data_Store_Session(); $WC_Customer_Data_Store_Session->get_order_count( $customer );
- $customer(WC_Customer) (обязательный) (передается по ссылке — &)
- Customer object.
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Customer_Data_Store_Session::get_order_count() WC Customer Data Store Session::get order count WC 9.8.2
public function get_order_count( &$customer ) { return 0; }