Automattic\WooCommerce\Admin\API\Reports\Orders
Controller::get_customer_name()
Get customer name column export value.
Метод класса: Controller{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_customer_name( $customer );
- $customer(массив) (обязательный)
- Customer from report row.
Код Controller::get_customer_name() Controller::get customer name WC 8.7.0
protected function get_customer_name( $customer ) { return $customer['first_name'] . ' ' . $customer['last_name']; }