Request: Redirect After Login, Registration, and Logout 11.3

King Kong

Active member
Trusted Uploader
Aug 14, 2020
275
178
43
No Country for Old Men !
I wrote this code as a snippet, to help us add a custom url for redirecting the user after their logout. It should help till we find Plugin {Redirect After Login, Registration, and Logout 11.3}

/*
Logout Redirect to Custom Url by No result forum for Woocomm on WP
*/

add_action('wp_logout','king_kong_redirect_after_logout');
function king_kong_redirect_after_logout(){
wp_redirect( '<add_your_desired_url_here>' );
exit();

}
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu