WordPress.org

Ready to get started?Download WordPress

Forums

wp_pre_logout hook proposal (2 posts)

  1. ssteiner
    Member
    Posted 3 years ago #

    I want to hook the user's logout before they actually logout, so I can tell who is logging out.

    Currently, the wp_logout() function in wp-includes/pluggable.php performs the wp_logout hook *after* the user has already logged out, so the "who has just logged out" information is lost.

    I am proposing a new hook:

    wp_pre_logout

    that will execute just before the logout is executed.

    This will not affect any existing code, and will allow plugin authors to get "in there" just before the logout happens.

    Thanks for any comments, suggestions, etc.

    S

    P.S. I'm not really in "the loop" with WordPress development. Is this the right place to propose this, or is some other avenue available?

    Thanks, again,

    S

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic