I'm looking for a function that can redirect users when they logout to the current page. I'm looking for a code I can use in functions.php?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
|
Using this code in functions.php does trick for me.
Note - Above code work only on non admin pages, to make work that on any page you should replace
with
|
||||
|
|
|
Have a look here - http://codex.wordpress.org/Function_Reference/wp_logout_url Easy as adding this:
|
||||
|
or change home url to current page url |
|||||||
|