How to change “Reset Password” text on submit button

I’ve added jQuery( document ).ready(function() { and it works! Final working code below: add_action( ‘resetpass_form’, ‘resettext’); function resettext(){ ?> <script type=”text/javascript”> jQuery( document ).ready(function() { jQuery(‘#resetpassform input#wp-submit’).val(“Set Password”); }); </script> <?php }

What’s the algorithm to verify user password?

First: Be aware that this is pluggable in WP so first of all check that you’re site is using the default implementation. Then have a look at wp_hash_password and wp_check_password in pluggable.php and the PasswordHash class. There you should find what you are looking for.

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

How secure is a wp-config file?

This is really more of a server configuration question. By necessity, wp-config.php must be readable by WordPress itself, but file access/security beyond that is really a matter of how your server is configured. Refer to the Codex for recommended file permissions for WordPress. Refer to the Codex for recommended ways to secure wp-config.php Refer to … Read more

Custom form for password protected page

For starters, you can hook into the password form. Then you can customize it. Something like: add_filter( ‘the_password_form’, ‘custom_password_form’ ); function custom_password_form() { global $post; $o = ‘<form action=”‘ . esc_url( site_url( ‘wp-login.php?action=postpass’, ‘login_post’ ) ) . ‘” method=”post”> ‘ . __( “This post is password protected. To view it please enter your password below: … Read more

Protect Passwords in wp_users with stronger protection than MD5

Password hashing/checking system in WP is pluggable, which essentially means that it is designed to be replaceable with custom implementation. This isn’t commonly done due to relying on defaults and compatibility. WP tries hard for backwards compat (such as with earliest single MD5 implementation) and portability (hashes from one WP install would work on another). … Read more

Send password to user instead of reset password link

You can use retrieve_password_message hook for that. That filter is applied as this: apply_filters( ‘retrieve_password_message’, string $message, string $key, string $user_login, WP_User $user_data ) So you’ll have access to $user_login of the user. It means, that you can write a filter function that will create random password for that user and then send it. function … Read more

Password Protected Post is invisible until you login

If a post password is applied and the user is not logged in, the post will not show up in search results. This is the expected behavior of WP_Query: // If a search pattern is specified, load the posts that match if ( !empty($q[‘s’]) ) { // added slashes screw with quote grouping when done … Read more

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