Add Password Generator on password protected page

It is not possible to modify the post submit meta boxes with a filter. But you can do that with JavaScript. This script will generate 10-12 random alphanumeric string and put it in the password field (if it is empty) when you click the Password protected radio button. $(‘#visibility-radio-password’).click(function () { // If there is … Read more

WordPress Password security related questions

When admin is resetting all users password are the users getting notified about the password reset? I read that with some “Emergency password reset” plugin it is available, but is it a built in feature in WordPress or no. WordPress doesn’t have an option to reset all users passwords, so it would depend on the … Read more

Completely disabling password reset/recovery

Since this is a multisite you’ll have to put the disable password filter in a mu-plugin. Create a file in wp-content/mu-plugins with: <?php add_filter( ‘allow_password_reset’, ‘__return_false’ ); That should completely disable password recovery. It will affect all sites, not just that one customer’s: if that’s not what you intended you’ll have to add logic here … Read more

Remove password protected posts from default RSS feed

Here’s the filter to exclude password protected posts from the default RSS feed: function rss_filter_protected( $query ) { if ( $query->is_feed ) { $query->set( ‘has_password’, false ); } return $query; } add_filter( ‘pre_get_posts’,’rss_filter_protected’ );

How to check user’s password?

WordPress does not just MD5 hash the password, it runs it through wp_hash_password() which in turn runs through the $wp_hasher (a global object) HashPassword method. This does some hsld crap to include getting random bytes of data, salting the password, and encrypting it. Basically it’s doing a whole lot more than an md5 to make … Read more

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