This topic has 2 replies, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #18584
     Maurice
    Participant

    Hello,

    I have some issues with members log in. When assigned member, member can log in and view important details about website.

    For example. When my website is http://www.sweetdate.com, member after log in, can type http://www.sweetdate.com/wp-admin and view details like on included image.
    Plug in: wp better security changes different log in url’s but still this one is affective and must be disabled.

    Any suggestions are most welcome.

    Thanks,

    Maurice

    Attachments:
    You must be logged in to view attached files.
    #18776
     Maurice
    Participant

    Hello, I got it fixed using this in functions.php

    function redirect_to_front_page() {
    if(is_user_logged_in() and is_admin() and !current_user_can(‘edit_posts’) ){
    wp_redirect( home_url() ); exit;
    }
    }
    add_action(‘init’, ‘redirect_to_front_page’);

    Thanks and hope somebody else can use it.

    Maurice

    #18896
     Abe
    Keymaster

    Thanks Maurice.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

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

The topic ‘Members Admin Log In’ is closed to new replies.

Log in with your credentials

Forgot your details?