Automattic\WooCommerce\Admin\API\Reports\Orders

Controller::get_customer_nameprotectedWC 1.0

Get customer name column export value.

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

Хуков нет.

Возвращает

string.

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

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

Код Controller::get_customer_name() WC 11.1.0

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