authenticate

authenticate

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('authenticate') is found 1 times:

  • /wp-includes/pluggable.php line 618
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    *                                        WP_Error or null otherwise.
     * @param string                $username Username or email address.
     * @param string                $password User password.
     */
    $user = apply_filters( 'authenticate', null, $username, $password );
     
    if ( null === $user || false === $user ) {
        /*
         * TODO: What should the error message be? (Or would these even happen?)
         * Only needed if all authentication handlers fail to return anything.
         */

See this hook used in plugins: