I work in a multisite environment, and I find it ridiculous that the Site ID drives everything, but you can’t see it without hovering over the item. So, turning to ChatGPT once more, I created a simple solution to add the SiteID to the site list. This is added as a client must-use plugin in our environment.
<?php
/**
* Plugin Name: Network Sites – Show Site ID
* Description: Adds a Site ID column to the Network Admin Sites list.
* Author: Stephen Walker
* Version: 1.3
*/
// Add Site ID column before URL/title column
add_filter( 'wpmu_blogs_columns', function( $columns ) {
$new_columns = [];
foreach ( $columns as $key => $label ) {
if ( $key === 'blogname' ) {
$new_columns['blog_id'] = __( 'Site ID', 'your-textdomain' );
}
$new_columns[ $key ] = $label;
}
return $new_columns;
} );
// Only load output callback on the correct screen
add_action( 'load-sites.php', function() {
add_action( 'manage_sites_custom_column', function( $column_name, $blog_id ) {
if ( 'blog_id' === $column_name ) {
echo esc_html( $blog_id );
}
}, 10, 2 );
});
// Add CSS to set fixed width for Site ID column (already scoped correctly)
add_action( 'admin_head-sites.php', function() {
echo '<style>
.wp-list-table .column-blog_id {
width: 80px;
}
</style>';
} );



