# Active Plugins Column in the Network Sites List

> Shows how many plugins each site has activated on its own, with the plugin names in a tooltip, in Network Admin > Sites.

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

## Code

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

add_filter( 'wpmu_blogs_columns', function ( $columns ) {
    $columns['wpide_plugins'] = __( 'Plugins' );

    return $columns;
} );

add_action( 'manage_sites_custom_column', function ( $column, $blog_id ) {
    if ( 'wpide_plugins' !== $column ) {
        return;
    }

    $active = array_filter( (array) get_blog_option( $blog_id, 'active_plugins', array() ) );

    if ( ! $active ) {
        echo '0';
        return;
    }

    $names = array_map( function ( $file ) {
        return dirname( $file ) === '.' ? basename( $file, '.php' ) : dirname( $file );
    }, $active );

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

## Notes

Network-activated plugins are not counted because they run on every site.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Active Plugins Column in the Network Sites 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/
