Support » Plugins and Hacks » hooks and filters

  • 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! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • whooami

    (@whooami)


    Member


    use windows? google for wingrep

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

    thanks!

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

    whooami

    (@whooami)


    Member


    do_action(‘wp_logout’)

    thats a function. php is functions.

    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! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘hooks and filters’ is closed to new replies.