Automattic\WooCommerce\Admin\API\Reports\Orders

Controller::get_customer_name()protectedWC 1.0

Get customer name column export value.

Method of the class: Controller{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_customer_name( $customer );
$customer(array) (required)
Customer from report row.

Controller::get_customer_name() code WC 7.3.0

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