WordPress.org

Forums

Hide podcast download count to visitors (7 posts)

  1. MarkinOut
    Member
    Posted 1 year ago #

    Hello,

    I would like to hide the download count number that is under the play button so that visitors cannot see it. I would only like admins to see this number. Is their a way to hide it from everyone except admins? Thank you very much for your help.

    http://www.MarkinOut.com

  2. jmyeom
    Member
    Posted 1 year ago #

    are you using a plugin for this?

    if so, please provide plugin

  3. MarkinOut
    Member
    Posted 1 year ago #

    We use podPress. Version 8.8.10.17

  4. jmyeom
    Member
    Posted 1 year ago #

    i took a quick look, sorry if i am wrong:

    in podpress general settings: Enable Statistics

  5. MarkinOut
    Member
    Posted 1 year ago #

    I think that will disable it in full. We're trying to disable it only from being seen by viewers. Thank you for your help. Truly do appreciate it.

  6. jmyeom
    Member
    Posted 1 year ago #

    untested:

    ok, this will override that function, and instead of having a "always on" it will be "always on for admin"

    podpress_class.php
    line:1194 (find: "$podPressTemplateData['showDownloadStats'] = $this->settings['contentDownloadStats'];")

    replace with:
    $podPressTemplateData['showDownloadStats'] = current_user_can('manage_options');

  7. MarkinOut
    Member
    Posted 1 year ago #

    That worked. Thank you so much for your help. Haha if you like pro wrestling, feel free to give us a listen. Have a good night.

Topic Closed

This topic has been closed to new replies.

About this Topic