Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: WP-admin

Discussion in 'Misc WordPress Requests' started by Kakshak Kalaria, Nov 30, 2017.

  1. Kakshak Kalaria

    Guest

    Reply To: WP-admin, by Kakshak Kalaria

    Hello @scottkr24,

    By default, WordPress will redirect them to the login page of your website, but we can easily change it by adding following snippet to current theme’s functions.php file:

    add_action('wp_logout','kk_auto_redirect_after_logout');
    function kk_auto_redirect_after_logout() {
    wp_redirect( 'https://www.example.com' );//URL you want to redirect
    exit();
    }

    Thanks,
    Kakshak

    Reply To: WP-admin
     
    #1

Share This Page

Web Hosting