Support » Plugin: Post Views Count (Support caching plugins!) » Only administrator can view?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Julio Potier

    (@juliobox)

    Ok, i added a filter in 2.19.7.
    “baw_count_views_capa_role” you can use it to modify the default “edit_posts” capability.
    Example for you:

    add_filter( 'baw_count_views_capa_role', 'baw_return_admin' );
    function baw_return_admin()
    {
      return 'administrator';
    }

    Thank you, but Editors still can see “Post Views Count” when they edit some post, for example in page …/wp-admin/post.php?post=4331&action=edit

    Plugin Author Julio Potier

    (@juliobox)

    Ok, fixed in 2.19.8, thank you!

    Thank you!

    Hi, I also need the ability to hide post counts front non-logged in users and only Admin can see it. Where do I insert the above code?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Only administrator can view?’ is closed to new replies.