WordPress at Your Fingertips
function is not described

WC_Customer::set_last_name() public WC 3.0.0

Set customer's last name.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->set_last_name( $last_name );
$last_name(string) (required)
Last name.

Changelog

Since 3.0.0 Introduced.

Code of WC_Customer::set_last_name() WC 5.9.0

public function set_last_name( $last_name ) {
	$this->set_prop( 'last_name', $last_name );
}