WC_Customer::set_username()publicWC 3.0.0

Set customer's username.

Method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->set_username( $username );
$username(string) (required)
Username.

Changelog

Since 3.0.0 Introduced.

WC_Customer::set_username() code WC 9.4.2

public function set_username( $username ) {
	$this->set_prop( 'username', $username );
}