Changed my email. Locked out

If you have access to the database, through phpMyAdmin or otherwise, you can change the email address in the ‘wp_users’ table. (your table may have a different prefix)

Resend password chosen by WP administrator? [duplicate]

WordPress cannot resend the existing password, because it does not know the existing password. Passwords are not stored as plain text, they are stored using a one-way hash. They cannot be decrypted and resent. They can be reset to something entirely new, and you can send that, but you can’t send what you don’t know … Read more

Password protected sites

The easier way can be have a group of users called teachers and give just the teacher’s group the permission to visit the page. There are many plugins for permission handling and grouping users so you’ll just need to search WordPress plugin repository. Just an example: groups plugin Another possible answer can be : multi … Read more

Ask logged in user to re-enter password to access page “x”

You have to get user’s hash (hash is encrypted password) from the database: get_currentuserinfo(); $user_hash = $current_user->user_pass_md5; Then check if it’s correct: wp_check_password( $password, $user_hash, $user_id ); $password – Plaintext user’s password from input $user_hash – Encrypted password from database $user_id – user ID I guess But as Mark said in comment – this is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)