WordPress.org

Ready to get started?Download WordPress

Forums

Set Subscriber Access To Profile Page Only (1 post)

  1. lovelyangelforyou
    Member
    Posted 7 years ago #

    Hi,

    I need to limit the access of subscriber to only the profile page. As it is by default they are able to access the Dashboard(index.php) and Profile(profile.php). Though I only want them to see Profile Page. And maybe a Tab next to it that takes them back to homepage for the website. I dont want them to see the index.php.
    I know this is possible. I am looking for it as well.

    By subscriber I mean user registered as Role Subscriber

    However editing the menu.php to following, does hide the dashboard link from the subscriber, however I dont want then to see the index page at all.
    //$menu[0] = array(__('Dashboard'), 'read', 'index.php');
    $menu[10] = array(__('Dashboard'), 'read', 'index.php');

    While just putting this code, I think I can add something like
    $menu[0] = array(__('Homepage'), 'read', 'mysiteurl');
    Let me try that. [Edit : This Works]

    However I am still thinking on how to stop access to index.php from subscriber.

Topic Closed

This topic has been closed to new replies.

About this Topic