WC_Customer_Data_Store_Interface::get_order_count()publicWC 1.0

Return the number of orders this customer has.

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

Хуков нет.

Возвращает

Int.

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

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

Код WC_Customer_Data_Store_Interface::get_order_count() WC 8.7.0

public function get_order_count( &$customer );