check_password

check_password

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('check_password') is found 2 times:

  • /wp-includes/pluggable.php line 2670
    2666
    2667
    2668
    2669
    2670
    2671
    2672
    2673
    2674
    2675
    2676
         * @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
    2683
    2684
    2685
    2686
    2687
    2688
    2689
    2690
    2691
    2692
            $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.