Created
June 22, 2020 18:17
-
-
Save dhirenpatel22/592a8be04b4d1791f6344f0d11fa5eba to your computer and use it in GitHub Desktop.
Redirect users to another page after logout in WooCoommerce
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
add_action('wp_logout','auto_redirect_after_logout'); | |
function auto_redirect_after_logout(){ | |
wp_redirect( home_url() ); | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment