WordPress.org

Ready to get started?Download WordPress

Forums

Allow Editor role to view stats (5 posts)

  1. groomedmonkey
    Member
    Posted 4 years ago #

    My specific issue is allowing "Editor" users access to wp-stats so that they can see the widget on the dashboard. It would be good for non-admin users to have this privilege rather than elevating their role. I have begun looking at permissions plugins but they mostly seem to be content related.

    Anyone know how I could accomplish this? I'm sure it would be useful to other people too.

  2. groomedmonkey
    Member
    Posted 4 years ago #

    statpress plugin allows you to set who can access it. So that's a solution. Haven't been able to find a good comparison between statpress and wp-stats. So I'll switch.

  3. sylk
    Member
    Posted 4 years ago #

    Hi, I'm looking to do the exact same thing? Any idea?

  4. groomedmonkey
    Member
    Posted 4 years ago #

    Yeah statpress (stats stored in your local database) plugin recently added the ability to set who can see it. It isn't very granular though so they are able to edit options for it. I just told them "only look at this and don't touch this".

    The dashboard widget for it doesn't go across for lower levels though which is all I really wanted to allow them to see. Oh well better than nothing.

  5. marky_uk
    Member
    Posted 4 years ago #

    Hiya

    FIXED AND WORKING for wp-stats.

    Not sure if I've done it right or not!

    Go to your wp-content/plugins/stats folder
    In there is the stats.php file
    Search for the two instances of current_user_can( 'manage_options' ) and replace with current_user_can( 'level_7' )

    I found my two instances on lines 605 and line 697.

    And if you want to check the roles available

    Hope that helps - it's working for me logged in as an Editor

    Regards

    Mark
    LogicSpot

Topic Closed

This topic has been closed to new replies.

About this Topic