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! :)
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! :)
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.
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! :)
This topic has been closed to new replies.