WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] Feature Request: Multisite - display to certain user roles (5 posts)

  1. masonjames
    Volunteer Moderator
    Posted 3 years ago #

    We're using this on a multisite where by default, new sites are created and the default role is 'editor'. It would be cool to define this as a Super Admin so that you can choose which roles see the stats and which do not.

  2. masonjames
    Volunteer Moderator
    Posted 3 years ago #

    Also, tried deleting global options and re-activating the plugin, but the table wasn't recreated in the database.

    I've tried changing the values in the plugin as well, but can't seem to get what I want (which is editors and above being able to view the site stats).

    Thanks!

  3. braekling
    Member
    Plugin Author

    Posted 3 years ago #

    Are you using the plugin in the plugin's multisite mode? Have a look at line 295 and change the hardcoded role name (default: "administrator").

  4. masonjames
    Volunteer Moderator
    Posted 3 years ago #

    Ah, thanks Braekling! That did it. I was making changes in the wrong location.

    I'd still put in a feature request that this be definable through the WordPress Admin for Super Admins so that the plugin can be updated - but thank you. This absolutely works perfectly for me right now :)

  5. rickymurphy
    Member
    Posted 2 years ago #

    I just found myself in the exact same position. This post just saved me hours of work - thank you!

    One more vote for the ability to define that in the admin menu.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags