WC_Customer::set_username()
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() WC Customer::set username code WC 9.4.2
public function set_username( $username ) { $this->set_prop( 'username', $username ); }