JezK
Edit File: mywp.setting.debug.blogs.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } if( ! class_exists( 'MywpAbstractSettingModule' ) ) { return false; } if ( ! class_exists( 'MywpSettingScreenDebugBlogs' ) ) : final class MywpSettingScreenDebugBlogs extends MywpAbstractSettingModule { static protected $id = 'network_debug_blogs'; static protected $priority = 30; static private $menu = 'network_debug'; public static function mywp_setting_screens( $setting_screens ) { if( is_multisite() ) { $setting_screens[ self::$id ] = array( 'title' => __( 'All Blogs' , 'my-wp' ), 'menu' => self::$menu, 'use_form' => false, ); } return $setting_screens; } public static function mywp_current_setting_screen_content() { if( is_multisite() ) { if( ! is_network_admin() ) { return false; } } else { return false; } global $wpdb; $all_blogs = $wpdb->get_results( "SELECT * FROM {$wpdb->blogs} ORDER BY blog_id" ); if( empty( $all_blogs ) ) { return false; } ?> <p><?php _e( 'Count' , 'my-wp' ); ?>: <?php echo count( $all_blogs ); ?></p> <table class="form-table"> <thead> <tr> <th><?php _e( 'Site ID' , 'my-wp' ); ?></th> <th>[blog_id] URL</th> <th><?php _e( 'Last Updated' ); ?></th> <th><?php _e( 'Public' ); ?></th> <th><?php _e( 'Deleated' , 'my-wp' ); ?></th> <th><?php _e( 'Data' ); ?></th> </tr> </thead> <tbody> <?php foreach( $all_blogs as $blog ) : ?> <tr> <th> [<?php echo $blog->site_id; ?>] </th> <td> [<?php echo $blog->blog_id; ?>] <?php echo $blog->domain; ?> <?php echo $blog->path; ?> </td> <td> <?php echo $blog->last_updated; ?> (<?php echo $blog->registered; ?>) </td> <td> <?php echo $blog->public; ?> </td> <td> <?php echo $blog->deleted; ?> </td> <td> <textarea readonly="readonly" class="large-text" style="height: 100px;"><?php print_r( $blog ); ?></textarea> </td> </tr> <?php endforeach; ?> </tbody> </table> <p> </p> <?php } } MywpSettingScreenDebugBlogs::init(); endif;