Ready to get started?Download WordPress


How to execute a function after user has logged in? (4 posts)

  1. bercon
    Posted 6 years ago #

    Are there any action hooks to use in order to execute a function just after the user has logged in?

  2. Austin Matzko
    Posted 6 years ago #

    I think I would use the check_password filter, which is used in the wp_check_password() function right after a password has been checked and is passed the user's ID as well as whether the password check succeeded. Look for it in wp-includes/pluggable.php

  3. bercon
    Posted 6 years ago #

    Thanks a lot filosofo, that did the trick!

  4. jstockdale
    Posted 5 years ago #

    What would be the filter that I would use to replace the wp_check_password() function? So I guess the hook right before the function is called? Would it be the authenticate filter? I may be looking at this the wrong way, I'm just trying to figure out how to use my function for checking passwords instead of the normal wordpress.

Topic Closed

This topic has been closed to new replies.

About this Topic