WordPress at Your Fingertips
function is not described

WC_Customer::get_display_name() public WC 3.1.0

Return customer's display name.

{} It's a method of the class: WC_Customer{}

No Hooks.

Return

String.

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->get_display_name( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

Changelog

Since 3.1.0 Introduced.

Code of WC_Customer::get_display_name() WC 5.9.0

public function get_display_name( $context = 'view' ) {
	return $this->get_prop( 'display_name', $context );
}