Description
This filter hook allows you to exclude an array of user IDs from user stats collection. The filter MUST return an array of user IDs to be valid.
NOTE: to retrieve the ID of a user, you can either look at the ID field directly in the wp_users table in your database, or look at the URL for viewing a user profile and extract it from user_id= (it will be a number, such as user_id=123).
Usage
add_filter( 'wpmemstat_user_exclude', 'users_excluded_from_stats' ); function users_excluded_from_stats( $title ) { // each number in the array should correspond to a user_id // IDs included will not be tracked return array( 1, 4, 123 ); }
See a list of all filter and action hooks