Created
January 11, 2025 08:13
-
-
Save Lego2012/00a5cc51683a515ef59de3eea389913d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function redirect_after_logout(){ | |
| wp_redirect( home_url() ); | |
| exit(); | |
| } | |
| add_action('wp_logout', 'redirect_after_logout'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment