WordPress at Your Fingertips
function is not described

WC_Customer::set_password() public WC 3.0.0

Set customer's password.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->set_password( $password );
$password(string) (required)
Password.

Changelog

Since 3.0.0 Introduced.

Code of WC_Customer::set_password() WC 5.9.0

public function set_password( $password ) {
	$this->password = $password;
}