WC_Customer::get_display_name()
Return customer's display name.
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. |
WC_Customer::get_display_name() WC Customer::get display name code WC 7.7.0
public function get_display_name( $context = 'view' ) { return $this->get_prop( 'display_name', $context ); }