wp user check-password <user> <user_pass>

Checks if a user’s password is valid or not

Arguments

NameDescription
userThe user login, user email or user ID of the user to check credentials for
user_passA string that contains the plain text password for the user

Options

NameDescription
--escape-charsEscape password with wp_slash() to mimic the same behavior as wp-login.php