check_password

check_password

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('check_password') is found 2 times:

  • /wp-includes/pluggable.php line 2670
    			 * @param string     $password The plaintext password.
    			 * @param string     $hash     The hashed password.
    			 * @param string|int $user_id  User ID. Can be empty.
    			 */
    			return apply_filters( 'check_password', $check, $password, $hash, $user_id );
    		}
    
    		/*
    		 * If the stored hash is longer than an MD5,
    		 * presume the new style phpass portable hash.
    		 */
    
  • /wp-includes/pluggable.php line 2686
     
    		$check = $wp_hasher->CheckPassword( $password, $hash );
    
    		/** This filter is documented in wp-includes/pluggable.php */
    		return apply_filters( 'check_password', $check, $password, $hash, $user_id );
    	}
    endif;
    
    if ( ! function_exists( 'wp_generate_password' ) ) :
    	/**
    	 * Generates a random password drawn from the defined set of characters.