wp user check-password <user> <user_pass>
Checks if a user’s password is valid or not
Arguments
Name | Description |
---|---|
user | The user login, user email or user ID of the user to check credentials for |
user_pass | A string that contains the plain text password for the user |
Options
Name | Description |
---|---|
--escape-chars | Escape password with wp_slash() to mimic the same behavior as wp-login.php |