‘random_password’ filters not taking effect

I think, your PHP syntax is wrong. Try these, function wpgenerapass_generate_password( $password, $length, $special_chars, $extra_special_chars ) { $chars=”abcdefghijklmnopqrstuvwxyz”; $chars .= ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ’; $chars .= ‘0123456789’; $chars .= ‘!@#$%^&*()’; if ( $extra_special_chars ) { $chars .= ‘-_ []{}<>~`+=,.;:/?|’; } $wpgenerapass_password = ”; // Initialize the password string $password_length = 8; for ( $i = 0; $i < … Read more

How do I find users by password?

The user password (stored as an MD5 hash) can be retrieved like so: $users = get_users(); foreach ( $users as $user ) { $password = $user->user_pass; } Assuming you have some known value for passkey, you can hash it and compare it to each user’s password: $passkey = ‘somestring’; $hashed_passkey = md5( $passkey ); $users … Read more