List of blogs and Space Allowed/Used (3 posts)

  1. dgemberling
    Posted 5 years ago #

    Is there a way as the WPMU Site Admin to get a list/report of all blogs on the site with the Space Allowed and the Space Used on it?


  2. most super admins have the same space allocated across the board.

    I *think* there might have been a plugin somewhere to show this, but it;s not built in, unless you want to visit the dashboard of each site.

  3. David Sader
    Posted 5 years ago #

    I use something like the following as part of an mu-plugin that displays a variety of stats per blog on the usual list of blogs at SuperAdmin->Sites

    function ds_upload_space_used() {
    global $blog;
     	$dirName = ABSPATH . 'wp-content/blogs.dir/' . $blog[ 'blog_id' ] . '/';
    		echo '<strong>Space Used: '. ( round(get_dirsize($dirName) / 1024 / 1024, 2)) . ' MB</strong>';
    add_action( 'wpmublogsaction', 'ds_upload_space_used');

Topic Closed

This topic has been closed to new replies.

About this Topic