WordPress.org

Ready to get started?Download WordPress

Forums

hooks and filters (5 posts)

  1. animasola
    Member
    Posted 5 years ago #

    I just wanted to ask where hooks, specifically actions, are defined within WordPress. I just want to change the hook wp_logout which is used in do_action('wp_logout')

    Any piece of advice would be greatly appreciated, thanks! :)

  2. whooami
    Member
    Posted 5 years ago #

    use windows? google for wingrep

    use it to search for the term wp_logout within the files.

  3. animasola
    Member
    Posted 5 years ago #

    thanks!

    but now I'm kinda confused. is the hook wp_logout the same as the function wp_logout? it isn't right? thanks.

  4. whooami
    Member
    Posted 5 years ago #

    do_action('wp_logout')

    thats a function. php is functions.

  5. animasola
    Member
    Posted 5 years ago #

    so the wp_function defined in pluggable.php is kinda redundant? coz here it is:

    function wp_logout() {
    wp_clear_auth_cookie();
    do_action('wp_logout');
    }

    anyhow, I kinda got it working. thanks though! :)

Topic Closed

This topic has been closed to new replies.

About this Topic