WordPress at Your Fingertips
function is not described

WC_Shortcode_My_Account::reset_password() public WC 1.0

Handles resetting the user's password.

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

Return

null. Nothing.

Usage

$result = WC_Shortcode_My_Account::reset_password( $user, $new_pass );
$user(object) (required)
The user.
$new_pass(string) (required)
New password for the user in plaintext.

Code of WC_Shortcode_My_Account::reset_password() WC 5.9.0

public static function reset_password( $user, $new_pass ) {
	do_action( 'password_reset', $user, $new_pass );

	wp_set_password( $new_pass, $user->ID );
	self::set_reset_password_cookie();

	if ( ! apply_filters( 'woocommerce_disable_password_change_notification', false ) ) {
		wp_password_change_notification( $user );
	}
}