Home Forums WordPress Plugins Hide My WP Log out to 404 page

This topic is: resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11777
    Aliosha Kasin
    Post count: 6

    Hi,

    Since I started using hide my wp, logging out from admin dashboard takes me to a 404 page. I’m assuming this is because originally it would take my to wp log in page but that is now hidden. How can I re-direct this to the homepage instead?

    #11779
    Suman M.
    Post count: 12480

    Hi, are you using any plugin that changes login/logout urls? Also, let us know your site’s wp-admin login details as private reply so that we can look into what exactly is happening.

    #11787
    Aliosha Kasin
    Post count: 6
    This reply has been marked as private.
    #11794
    Suman M.
    Post count: 12480

    I have add the line below in your theme’s function.php file so that you are redirected to homepage after logout:

    add_action(‘wp_logout’,create_function(”,’wp_redirect(home_url());exit();’));

    Please check and let us know.

    #11800
    Aliosha Kasin
    Post count: 6

    thats perfect thank you

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.