WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dgemberling
    Member
    Posted 3 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?

    thanks,
    duane

  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
    Member
    Posted 3 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

    <?php
    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