Disable Count for Certain Users
-
I host an internal intranet and am using the page counts to track stats.
Wondering if you could add feature to ignore certain users? I know I could add code before any of your update_post_meta commands to check user ID and say
$user_object = get_userdata( $user_id );
if ( $user_id == 1 ) {} else { … proceed to update_post_meta
Was just more curious if you could add a feature in the back where you could list usernames or ID’s of users you don’t want to count views for?
If not I just keep manually updating in post_meta table
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Disable Count for Certain Users’ is closed to new replies.