• Would some kind soul please provide a brief walkthru of how “do_action_ref_array(‘wp_authenticate’, array(&$user_login, &$user_pass))” ends up calling wp_login() — I know it has something to do with filters and hooks and actions, but I’m lost in the details. I can’t find any other code reference that links wp_authenticate to wp_login. WordPress is amazing but not psycic… What am I missing?

    I’ve been trying to figure this out for a few hours – i’m stumped. any help would really be appreciated. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • No one here has a soul.

    From what I see, wp_authenticate is an extensibility point so you can implement a filter that will manipulate the username/password provided.

    wp_login is invoked 9 lines below the call to the wp_authenticate filter in wp-login.php.

    I didn’t find any function called wp_authenticate.
    So I think this is only a hook to implement pre-login-functions.

    The wp_authenticate hook is called before the wp_login function and is called every time when wp-login.php is called (login and logout).
    Its also possible to manipulate the content of the login page, but its not a filter. Its only possible to add content from the beginning of the page page.

    May be some WP-developer can explain for what it is.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_authenticate – is it magic?’ is closed to new replies.