WordPress.org

Forums

WordPress Popular Posts
[resolved] Popular posts Stats for Editors (4 posts)

  1. jordykovic
    Member
    Posted 4 years ago #

    Hi,

    Thank you for this plugin, it's works perfectly but I'd like to show Stats for editors and not only administrators on my blog Dashboard Menu but I don't know how to do that :)

    Do you have a solution for that please ?

    Thanks !
    Tom

  2. H├ęctor Cabrera
    Member
    Plugin Author

    Posted 4 years ago #

    Hi Tom,

    Yes, that's an easy fix. Open wordpress-popular-posts.php using an editor such as Windows' Notepad or Adobe Dreamweaver and change this code (around line 1110):

    // stats page
    // Since 2.0.3
    function wpp_stats() {
        if ( function_exists('add_submenu_page') ) add_submenu_page('index.php', __('WordPress Popular Posts Stats'), __('WordPress Popular Posts Stats'), 'manage_options', 'wpp-stats-display', array(&$this, 'wpp_stats_display'));
    }

    ... into this:

    // stats page
    // Since 2.0.3
    function wpp_stats() {
        if ( function_exists('add_submenu_page') ) add_submenu_page('index.php', __('WordPress Popular Posts Stats'), __('WordPress Popular Posts Stats'), 'edit_others_posts', 'wpp-stats-display', array(&$this, 'wpp_stats_display'));
    }

    That should do it!

    P.S.: please make sure you actually have permission from your blog's administrator to do this change, ok? Don't get me into trouble! LOL

  3. jordykovic
    Member
    Posted 4 years ago #

    Yeahhh, it's working !

    Thank you ! It's perfect :)

  4. nycgadgetgirl
    Member
    Posted 4 years ago #

    Ikki24 - Just posting a quick thank you. I came to the forums looking for a way to do this as well and this worked perfectly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic