Advertisement
Aurangajeb

Redirect user after logout

Aug 14th, 2021
1,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. //REDIRECT LOGOUT
  2. add_action('wp_logout','mm_redirect_after_logout');
  3. function mm_redirect_after_logout(){
  4.          wp_redirect( 'https://example.com/' );
  5.          exit();
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement