Is there any need to use both wp_reset_postdata and wp_reset_query together?

There’s no need to use them both. You should only use wp_reset_query(), if you modified query with query_posts() (which you should avoid). This function also call wp_reset_postdata() – http://core.trac.wordpress.org/browser/tags/3.4.1/wp-includes/query.php#L95 So it’s better to use wp_reset_postdata() after running separate query.

Password reset message – change the network_home_url( ‘/’ )

Let’s check the Codex and follow the links to the source: 3029 function network_home_url( $path=””, $scheme = null ) { 3030 if ( ! is_multisite() ) 3031 return home_url($path, $scheme); 3032 3033 $current_site = get_current_site(); 3034 $orig_scheme = $scheme; 3035 3036 if ( ! in_array( $scheme, array( ‘http’, ‘https’, ‘relative’ ) ) ) 3037 $scheme … Read more

Reset password – set minimum length for new password

You may want to use the validate_password_reset hook instead. Try add_action( ‘validate_password_reset’ , ‘se_password_min_length_check’ 10, 2 ); function se_password_min_length_check( $errors, $user){ if(strlen($_POST[‘pass1’]) < 8) $errors->add( ‘password_too_short’, ‘ERROR: password is too short.’ ); }

Check Password Reset Key Not Woking

I fixed it. We need decode url with esc_url_raw. Here is solution. <?php $user_data = get_user_by( ’email’, ‘[email protected]’ ) ); $key = get_password_reset_key( $user_data ); $user_login = $user_data->user_login; $url = esc_url_raw( get_permalink( ‘1’ ) . “?action=rp&key=$key&login=” . rawurlencode($user_login) ) . “\r\n”; $message = $url; wp_mail( $user_email, “Title”, $message ); ?>