There isn’t an explicit option for removing the admin bar display, but the following code would probably work if you added it to your theme’s functions.php file (or a custom functionality plugin):
remove_action( 'admin_bar_menu', array( Post_Hit_Counter(), 'display_post_views_admin_bar' ), 999 );
That will remove the hook that added the hit count to the admin bar.
You could also try this block of code that would remove the node from the admin bar completely:
add_action( 'admin_bar_menu', 'remove_post_hit_count_display', 999 );
function remove_post_hit_count_display( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'hit_counter' );
}
If that doesn’t work then modify the 999
in the code to any other number either 998
or 1000
.
One of those options will definitely work. I’ll look into maybe adding this as an option in the future, but I can’t guarantee that I will do that.
If this has helped you then it would be great if you could support continued development of the plugin by leaving a review ??
Cheers,
Hugh