Forums

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

  1. bercon
    Member
    Posted 10 months ago #

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

  2. filosofo
    Member
    Posted 10 months 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
    Member
    Posted 10 months ago #

    Thanks a lot filosofo, that did the trick!

  4. jstockdale
    Member
    Posted 3 months 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.

Reply

You must log in to post.

About this Topic

Tags