WordPress.org

Ready to get started?Download WordPress

Forums

wp_authenticate - is it magic? (4 posts)

  1. latitudes
    Member
    Posted 7 years ago #

    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!

  2. octnix
    Member
    Posted 7 years ago #

    No one here has a soul.

  3. cldellow
    Member
    Posted 7 years ago #

    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.

  4. alfredocubitos
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic