Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    Try the following:

    1. Go to Plugins > Editor and select WordPress Popular Posts from the dropdown at the right.
    2. Find:
      public function add_plugin_admin_menu() {
      
      	$this->plugin_screen_hook_suffix = add_options_page(
      		'WordPress Popular Posts',
      		'WordPress Popular Posts',
      		'manage_options',
      		$this->plugin_slug,
      		array( $this, 'display_plugin_admin_page' )
      	);
      
      }

      … see the ‘manage_options‘ string? This is where you tell WordPress which permission is required to access the admin page. Change it to -for example- ‘moderate_comments‘ and editors should be able to see the stats too (here’s a complete list of roles and capabilities, just in case you need it).

    3. Hit the Update file button to save changes.
    Thread Starter kharlo

    (@kharlo)

    Great, thank you very much!
    This is working.

    Maybe you should add an option to choose the minimum role on next update?

    Thanks for your fast answer.

    Plugin Author Hector Cabrera

    (@hcabrera)

    No problem, glad to help!

    Maybe you should add an option to choose the minimum role on next update?

    Next update will be mostly bug fixes, but I’ll consider your suggestion!

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

The topic ‘Stats for editors’ is closed to new replies.