# Site Count Column in the Network Users List

> Adds a column to Network Admin > Users showing how many sites each person belongs to, with the site names in a tooltip.

- Type: PHP
- Runs: Admin only
- Category: [Multisite](https://wpide.com/library/category/multisite/)
- Tags: network-admin, users, columns
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/ms-users-site-count-column/

## Code

```php
if ( ! is_multisite() ) {
    return;
}

add_filter( 'wpmu_users_columns', function ( $columns ) {
    $columns['wpide_site_count'] = __( 'Site count' );

    return $columns;
} );

add_filter( 'manage_users_custom_column', function ( $output, $column, $user_id ) {
    if ( 'wpide_site_count' !== $column ) {
        return $output;
    }

    $blogs = get_blogs_of_user( $user_id );
    $names = wp_list_pluck( $blogs, 'blogname' );

    return sprintf( '<span title="%1$s">%2$d</span>', esc_attr( implode( ', ', $names ) ), count( $blogs ) );
}, 10, 3 );
```

## Notes

""

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Site Count Column in the Network Users List" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
