Automattic\WooCommerce\Internal\OrderWithdrawal
OrderWithdrawalFormProcessor::get_customer_name
Get the customer's full name for display.
Method of the class: OrderWithdrawalFormProcessor{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->get_customer_name( $data ): string;
- $data(array<string,string>) (required)
- Form data.
OrderWithdrawalFormProcessor::get_customer_name() OrderWithdrawalFormProcessor::get customer name code WC 11.1.2
private function get_customer_name( array $data ): string {
return trim( $data[ self::FIELD_FIRST_NAME ] . ' ' . $data[ self::FIELD_LAST_NAME ] );
}