Automattic\WooCommerce\Admin\API\Reports\Orders

Controller::get_customer_name()protectedWC 1.0

Get customer name column export value.

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

Хуков нет.

Возвращает

Строку.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_customer_name( $customer );
$customer(массив) (обязательный)
Customer from report row.

Код Controller::get_customer_name() WC 8.7.0

protected function get_customer_name( $customer ) {
	return $customer['first_name'] . ' ' . $customer['last_name'];
}