This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Multisite Admin Bar Switcher


Require PHP 5.3

The Multisite Admin Bar Switcher is a plugin written for WordPress Multi-Site
that makes switching between sites easier with large numbers of sites.

This plugin replaces the built in ‘sites’ drop down with one which breaks the
sites up by letter.

عکس‌های صفحه

  • Multisite Admin bar Switcher in action


  1. Upload multisite-admin-bar-switcher folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Network/Plugins’ menu in WordPress
    The switcher will now appear on the Admin Menu

سوالات متداول

Multisite Admin Bar Switcher supports filters to change the way the site lists look.

mabs_blog_name – used to customise the way the blog names look in the site list

 * Sets the blog name to show in the sites drop down
 * @param  string   $name    Blog name
 * @param  stdClass $blog    Blog details
 * @return string            Blog name
add_filter('mabs_blog_name', function($name, $blog) {
    return sprintf("(%s) %s", $blog->userblog_id, $name);
}, 10, 2);

mabs_blog_pages – used to add or remove subitems from blogs

 * Sets the blog items to show under a site
 * @param  [type]  $pages   List of blog subitems
 * @param  int     $site_id Blog ID
 * @param  WP_User $user    User we're showing the list to
 * @return array            List of blog subitems
add_filter('mabs_blog_pages', function($pages, $site_id, $user) {
    return array_merge($pages, array(
        'products' => array('title' => 'Products', 'url' => 'edit.php?post_type=product', 'permission' => 'edit_products'),
}, 10, 3);

mabs_cache_duration – alter cache time (default 30 minutes)

 * Various DB-intensive lookups are cached. Use this filter to alter the cache time.
 * @param  int     $cachetime Cache Time (default 30 minutes)
 * @return int                Cache time
add_filter('mabs_cache_duration', function($cachetime) {
    return 60*60*30;

نقد و بررسی‌ها

25 جولای 2017
I’ve been using this plugin for a few months now, it should be built in to WordPress. My install started with about 50 domains, it’s now up to 148 and I’ve only ever had one problem, it wouldn’t display that many sites. I mentioned this to the developer and an updated version was released right away, now all of the domains are in one handy menu. I wouldn’t setup another wpmu without it, a super useful and solid plugin.
3 سپتامبر 2016
Does exactly what I need it to and saves me a few clicks. Thank you!
خواندن تمامی 6 نقد و بررسی‌

توسعه دهندگان و همکاران

“Multisite Admin Bar Switcher” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Multisite Admin Bar Switcher” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

گزارش تغییرات


  • 2020-06-18
  • PSR-2
  • Removed unused ‘user’ argument in ‘mabs_blog_pages’ filter


  • Don’t allow spaces in IDs


  • Fix version mismatch


  • Network – Settings – Mabs – Clear Cache button now clears cache for everyone


  • Remove some redundant database calls


  • Cache admin URLs to avoid hitting the DB


  • Retrieve a much larger number of sites


  • wp_get_sites() deprecation fix


  • Added mobile menu


  • Performance improvement: More admin bar methods cached. WP_Admin_Bar has been replaced with MABS_Admin_Bar


  • Performance improvement: Admin bar menus that we’re removing shouldn’t ever be loaded in the first place


  • Switch from wp_cache API to site_transient API so caching happens on both backend and frontend


  • Cache mabs_get_blogs_of_network function


  • Add cache support to speed up admin bar generation
  • ‘Network Settings’ page for clearing cache


  • ‘My Sites’ translation fix


  • Capitalization fix


  • Added mabs_blog_pages, mabs_blog_name filters – See documentation for usage instructions


  • Disable autocomplete on filter field


  • Show all blogs to super admins


  • Minor fixes


  • Minor fixes


September 25, 2014

  • Added site filter if 10 or more blogs


April 30, 2014

  • Confirmed compatibility with WP 3.9


  • MABS now shows for all logged in users.
  • Performance improvements
  • Only applicable blogs show for each user


  • ‘My Sites’ admin button now toggles between admin and frontend


  • Minor readme updates


February 14, 2013

  • First version released