Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

WordPress plugin for adding a custom meta to New Sites

branch: master
Octocat-spinner-32 img Version 2013.09.26 September 26, 2013
Octocat-spinner-32 inc Readme update October 11, 2013
Octocat-spinner-32 js Version 2013.09.26 September 26, 2013
Octocat-spinner-32 Readme update October 11, 2013
Octocat-spinner-32 license.txt version 1 May 02, 2012
Octocat-spinner-32 multisite-site-category.php Readme update October 11, 2013

Multisite Site Category MTT logo

WordPress plugin for managing sites categories.


The plugin adds a new field "category" to the Site Info screen. A sortable column is also added in the Sites list screen. A Categories submenu is created under Sites, add or remove categories there.

The column mature in the table wp_blogs is being used as index to the categories.
This is a workaround to allow sorting the sites based on categories.
There's a filter being applied (except in the sites screen) that tells WordPress that the site is not mature:

if( 'sites.php' != $pagenow )
    add_filter( 'blog_details', array( $this, 'hack_mature_queries' ) );    
public function hack_mature_queries( $details )
    $details->mature = 0;
    return $details;

Sooo... this workaround assumes the Multisite doesn't contain mature material ;)

Right now, there's no category selection when creating or signing up for new sites.
The code from the old plugin is still present, but inactive.
To be able to sort the sites, the logic changed a lot and I haven't revised the new site features.

Available hooks:

// Cache time, default 3600 (1hour)
add_filter( 'msc_transient_time', function(){ return 1; } );
// For debugging purposes
add_filter( 'msc_show_mature_column', '__return_true' );

Originally based on this WordPress Question.
Here's a copy of the first version of the plugin.


  1. Unpack the download-package
  2. Upload the file to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Network Plugins' menu in WordPress


Sites Manager showing the debug column mature.

Sites Manager

Site info

Site add back end

Manage categories

Site add front end

Other Notes


Released under GPL, you can use it free of charge on your personal or commercial blog.

Something went wrong with that request. Please try again.