Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joshua Parker

    (@parkerj)

    I am not sure I understand.

    Thread Starter schmolluck

    (@schmolluck)

    My goal was to add a filter as following:

    add_filter( 'authenticate', 'myplugin_auth_signon', 30, 3 );
    function myplugin_auth_signon( $user, $username, $password ) {
         return $user;
    }

    In this case the parameter $username is always null. I analyzed the code of plugin ‘external-db-auth-reloaded’ and I see that the parameter is set to null.

    I solved the problem. with ‘wp_authenticate_user’. In this cas I have the username.

    add_filter( 'wp_authenticate_user', 'checkCodeFilter', 10, 2);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem with 'authenticate' filter’ is closed to new replies.