Verify wordpress login credentials to api first before authenticated by wordpress

242 Views Asked by At

I want to verify email id and password with external API before the wordpress authentication. I have used filters to get it done but its authenticate with wordpress first.

add_filter( 'authenticate', 'verify_auth', 20, 3 );

function verify_auth( $user, $username, $password ){


}
0

There are 0 best solutions below