WC_Customer::get_last_name()
Return customer's last name.
Method of the class: WC_Customer{}
No Hooks.
Return
String
.
Usage
$WC_Customer = new WC_Customer(); $WC_Customer->get_last_name( $context );
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'
Changelog
Since 3.0.0 | Introduced. |
WC_Customer::get_last_name() WC Customer::get last name code WC 9.7.1
public function get_last_name( $context = 'view' ) { return $this->get_prop( 'last_name', $context ); }