WordPress reset password button not working

The markup of your button is <input disabled=”” class=”woocommerce-Button button” value=”Reset Password” type=”submit”> it shouldn’t be disabled, removing the disabled attr doesn’t seem to fix the problem, but I think that this button is “Decoration”, and it is not associated with any ajax request, the theme default functionality for reset password seems to open the … Read more

Reset Password – change from name and email address. It stucks at admin. Want to change it to info

As you can see here, WordPress will use WordPress as sender name and wordpress@<SITENAME> as sender email, if these params were note passed to wp_mail. You can use wp_mail_from and wp_mail_from_name filters to modify these values though. So if you want to change the sender e-mail address, just use this code: add_filter( ‘wp_mail_from’, function( $email … Read more

How WordPress hashes passwords

I’m the author of the linked article (thanks for the shout-out, by the way). The WordPress function that does the hashing is wp_has_password() and, by default, it will run the password through 8 rounds whatever the “best” algorithm the server makes available to PHPass is. WordPress, again by default, uses MD5. However you can also … Read more

Password Protection for posts and pages [duplicate]

I’ve used the following to protect individual pages: First add a field to the Publish Metabox: add_action( ‘post_submitbox_misc_actions’, ‘my_post_submitbox_misc_actions1’ ); function my_post_submitbox_misc_actions1(){ echo ‘<div class=”misc-pub-section my-options”> <input type=”checkbox” id=”fgpsn_protected_content” name=”fgpsn_protected_content” value=”true”‘; if ( get_post_meta(get_the_ID(), ‘fgpsn_protected_content’, true) == ‘true’ ){ echo ‘ checked’; } echo ‘> <label for=”fgpsn_protected_content”>FGPSN Content</label></div>’; } Then save the meta data – … Read more

mysql update user’s password and activation key

You are using the user email as the user login. Your code, formatted for readability, looks like: $resetQuery = $wpdb -> query( $wpdb -> prepare( “UPDATE wp_users SET user_pass = %s, user_activation_key = ” WHERE user_login = %s AND user_activation_key = %s”, $hashedPwd, $useremail, $key ) ); The $useremail argument matches the user_login = %s … Read more

forgot password

You can reset it in phpmyadmin if it’s your own site by using a utility to replace it in the database. Search for ‘WordPress password generator’ and this should show you the way. If it’s not your site, contact the administrator or check your spam. Obviously if there’s a site admin you know, get them … Read more

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