WordPress at Your Fingertips
function is not described

WC_Customer::set_username() public WC 3.0.0

Set customer's username.

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

No Hooks.

Return

null. Nothing.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_Customer::set_username() WC 5.9.0

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