Support » Plugin: Top 10 - Popular posts plugin for WordPress » Ignore hits from other admins

  • Resolved heartki


    Hi. Just wanted to say this plugin was what I was looking for. Simple tracking of hits, compatible with caching plugins.

    Is there a way to ignore/discard not just the author’s hits on its own post, but any site admin (or a specific list of admins)?

    Even if the functionality isn’t scheduled anytime soon, I’d take any code hack you can give me.


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


    I haven’t tested this yet, but you can try on line 66 of top-10.php file:

    if (!(($post_author)&&(!$tptn_settings['track_authors']))) {


    if (!( current_user_can( 'manage_options' ) ) || (!(($post_author)&&(!$tptn_settings['track_authors'])))) {

    As usual, please remember to backup files and databases before making these changes. Double check to ensure that the brackets are properly opened and closed.

    Worked just fine.
    Nice response speed btw.


    Plugin Author Ajay


    Your welcome

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ignore hits from other admins’ is closed to new replies.