wp_authenticate_user

wp_authenticate_user

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

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_authenticate_user') is found 2 times:

  • /wp-includes/user.php line 198
    	 * @param WP_User|WP_Error $user     WP_User or WP_Error object if a previous
    	 *                                   callback failed authentication.
    	 * @param string           $password Password to check against the user.
    	 */
    	$user = apply_filters( 'wp_authenticate_user', $user, $password );
    	if ( is_wp_error( $user ) ) {
    		return $user;
    	}
    
    	if ( ! wp_check_password( $password, $user->user_pass, $user->ID ) ) {
    		return new WP_Error(
    
  • /wp-includes/user.php line 269
    		);
    	}
    
    	/** This filter is documented in wp-includes/user.php */
    	$user = apply_filters( 'wp_authenticate_user', $user, $password );
    
    	if ( is_wp_error( $user ) ) {
    		return $user;
    	}
    
    	if ( ! wp_check_password( $password, $user->user_pass, $user->ID ) ) {
    

See this hook used in plugins: