• Resolved alexzaragoza21

    (@alexzaragoza21)


    Hello Hector,

    Thank you so much for this wondeful plugin. Best views counting plugin ever!

    By the way, is there a way to disable WPP count in a certain post type?

    Can I also disable the statistics of views in the WPP backend dashboard?

    Thank you so much! More power to you.

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

    (@hcabrera)

    Hi @alexzaragoza21,

    Thank you so much for this wondeful plugin. Best views counting plugin ever!

    Thanks, glad to know it’s been useful to you ??

    By the way, is there a way to disable WPP count in a certain post type?

    Yep, you can have the plugin track views for only specific post type(s). To do so use the wpp_trackable_post_types filter hook.

    For example, if you want to have WPP to track views only for posts and pages add this code snippet to your theme’s functions.php file:

    /**
     * Have WPP track only 'post' and 'page' post types pageviews, ignore the rest.
     *
     * @param  array $post_types
     * @return array
     */
    function my_trackable_post_types($post_types){
        $track_these_post_types_only = array('post', 'page');
        return $track_these_post_types_only;
    }
    add_filter('wpp_trackable_post_types', 'my_trackable_post_types', 10, 1);

    Can I also disable the statistics of views in the WPP backend dashboard?

    Yes, click on the Settings icon (little cog icon) that you can see floating on the left of the Stats screen (Settings > WordPress Popular Posts.)

    Thread Starter alexzaragoza21

    (@alexzaragoza21)

    You’re a Rockstar @hcabrera

    The filter hook works!

    However, when I try to disable the WPP stat in the back end its seems that it still continue to function as it use to be? I hit save on the icon you mentioned, there was still the default setting? And I can still see the stat on the dashboard?

    Thank you so much!

    Plugin Author Hector Cabrera

    (@hcabrera)

    You’ll need to be a bit more specific @alexzaragoza21 ?? What exactly did you do and what do you want to achieve?

    Thread Starter alexzaragoza21

    (@alexzaragoza21)

    Hi @hcabrera

    What I mean is the WPP STAT is still working after I disabled it in the back end.

    I clicked setting icon as per your instruction–>https://snipboard.io/KTFV5M.jpg

    I emptied those field and save it. However when I open it again the post types and limit remain the same.

    All I want is to disable the stat in the back end. Did I make sense? Sorry for not being direct last time. ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    Ah, thanks for clarifying. Then unfortunately the answer is no, that’s not possible. You can’t “disable” the Stats section.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disble WPP in custom post type and disable admin stat’ is closed to new replies.