WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: WP Hide Dashboard] directly from the browser? (4 posts)

  1. Gunu
    Member
    Posted 3 years ago #

    This is a great plugin, just what I need (thanks)
    http://wordpress.org/extend/plugins/wp-hide-dashboard/

    I changed the rol Subscriber to Author, this works correct when I log in as Author the menu's are hidden, so far great.

    However, there is a problem.
    There is still a way to wp-admin/tools.php directly from the browser.

    Is there a way to fix this?

  2. Kim Parsell
    Volunteer Moderator
    Posted 3 years ago #

    @grafcom: Sorry for the delay in responding. I've been out of town on vacation.

    Yes, there is a way to fix that. Open wp-hide-dashboard.php in a plain text editor and change line 94 to read:

    if (!current_user_can(''.$wphd_user_capability.'') && ($parent_file == 'index.php' || $parent_file == 'tools.php')) {

    Let me know if this resolves the issue for you.

  3. Gunu
    Member
    Posted 3 years ago #

    @kpdesign: Yes this works, only at the end

    'tools.php')) {

    this must be

    'tools.php') {

    right?

    Thank you!

  4. Kim Parsell
    Volunteer Moderator
    Posted 3 years ago #

    @grafcom: No, there needs to be 2 ending parentheses, just as I posted it. The last ending parentheses closes the condition statement that started right after if. Without it you'll get a fatal error.

    Glad it's working for you!

Topic Closed

This topic has been closed to new replies.

About this Topic