Title: Multisite Admin Bar Switcher
Author: flynsarmy
Published: <strong>Èrèlé  17, 2013</strong>
Last modified: Òkúdù 17, 2020

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://s.w.org/plugins/geopattern-icon/multisite-admin-bar-switcher.svg)

# Multisite Admin Bar Switcher

 Láti ọwọ́ [flynsarmy](https://profiles.wordpress.org/flynsarmy/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/multisite-admin-bar-switcher.1.4.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/multisite-admin-bar-switcher/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/multisite-admin-bar-switcher/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/multisite-admin-bar-switcher/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/multisite-admin-bar-switcher/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/)

## Àpèjúwe

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.

## Àwọn àwòrán ìbòjú

 * [[
 * Multisite Admin bar Switcher in action

## Ìgbéwọlẹ̀

 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

## FAQ

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

**mabs_blog_name** Ìtumọ̀ Yorùbá: – 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** Ìtumọ̀ Yorùbá: – 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** Ìtumọ̀ Yorùbá: – 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;
    });
    ```

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/dc1c7100c5f0da8b7e606f2dc8acb745e9fc6da158d5101394647b2fd059d8a7?
s=60&d=retro&r=g)

### 󠀁[Super useful & solid plugin, 148 domains & smooth sailing.](https://wordpress.org/support/topic/super-useful-solid-plugin-148-domains-smooth-sailing/)󠁿

 [Danny](https://profiles.wordpress.org/ectogroup/) Agẹmọ 25, 2017

IÌtumọ̀ Yorùbá: ’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Ìtumọ̀ Yorùbá: ’s now
up to 148 and IÌtumọ̀ Yorùbá: ’ve only ever had one problem, it wouldnÌtumọ̀ Yorùbá:’
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Ìtumọ̀
Yorùbá: ’t setup another wpmu without it, a super useful and solid plugin.

![](https://secure.gravatar.com/avatar/d69ded7ff395fe086c58984188d0dc79a5d492aa212b038805caffbb4b89bf7c?
s=60&d=retro&r=g)

### 󠀁[Very Useful](https://wordpress.org/support/topic/very-useful-967/)󠁿

 [Joe Fusco](https://profiles.wordpress.org/joefusco/) Ọwẹ́wẹ̀ 3, 2016

Does exactly what I need it to and saves me a few clicks. Thank you!

![](https://secure.gravatar.com/avatar/03a2ce8630eb482554b5eb5d74a3a9a5c442c34008e4eeba8ba2f8a58ce6dd19?
s=60&d=retro&r=g)

### 󠀁[Very useful plugin!](https://wordpress.org/support/topic/very-useful-plugin-395/)󠁿

 [Denis Bolvinov](https://profiles.wordpress.org/dinisiy/) Ọwẹ́wẹ̀ 3, 2016

Very simple and it does what it should

 [ Ka gbogbo àwọn àgbéyẹ̀wò 6 ](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Multisite Admin Bar Switcher” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí
ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

 *   [ flynsarmy ](https://profiles.wordpress.org/flynsarmy/)

[Túmọ̀ “Multisite Admin Bar Switcher” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/multisite-admin-bar-switcher)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/multisite-admin-bar-switcher/),
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/multisite-admin-bar-switcher/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/multisite-admin-bar-switcher/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/multisite-admin-bar-switcher/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.4.0

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

#### 1.3.4

 * DonÌtumọ̀ Yorùbá: ’t allow spaces in IDs

#### 1.3.3

 * Fix version mismatch

#### 1.3.2

 * Network Ìtumọ̀ Yorùbá: – Settings Ìtumọ̀ Yorùbá: – Mabs Ìtumọ̀ Yorùbá: – Clear
   Cache button now clears cache for everyone

#### 1.3.1

 * Remove some redundant database calls

#### 1.3.0

 * Cache admin URLs to avoid hitting the DB

#### 1.2.6

 * Retrieve a much larger number of sites

#### 1.2.5

 * wp_get_sites() deprecation fix

#### 1.2.3

 * Added mobile menu

#### 1.2

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

#### 1.1.3

 * Performance improvement: Admin bar menus that weÌtumọ̀ Yorùbá: ’re removing shouldnÌtumọ̀
   Yorùbá: ’t ever be loaded in the first place

#### 1.1.2

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

#### 1.1.1

 * Cache mabs_get_blogs_of_network function

#### 1.1

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

#### 1.0.12

 * ‘My Sites’ translation fix

#### 1.0.11

 * Capitalization fix

#### 1.0.10

 * Added mabs_blog_pages, mabs_blog_name filters Ìtumọ̀ Yorùbá: – See documentation
   for usage instructions

#### 1.0.9

 * Disable autocomplete on filter field

#### 1.0.8

 * Show all blogs to super admins

#### 1.0.7

 * Minor fixes

#### 1.0.6

 * Minor fixes

#### 1.0.5

September 25, 2014

 * Added site filter if 10 or more blogs

#### 1.0.4

April 30, 2014

 * Confirmed compatibility with WP 3.9

#### 1.0.3

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

#### 1.0.2

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

#### 1.0.1

 * Minor readme updates

#### 1.0

February 14, 2013

 * First version released

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.4.0**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 6 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **10+**
 *  Ẹ̀yà WordPress ** 3.2.1 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **5.4.19**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/multisite-admin-bar-switcher/)
 * Àwọn àmì
 * [multisite](https://yor.wordpress.org/plugins/tags/multisite/)[network](https://yor.wordpress.org/plugins/tags/network/)
   [switch](https://yor.wordpress.org/plugins/tags/switch/)[switcher](https://yor.wordpress.org/plugins/tags/switcher/)
   [toolbar](https://yor.wordpress.org/plugins/tags/toolbar/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/multisite-admin-bar-switcher/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/reviews/)

## Àwọn Olùkópa

 *   [ flynsarmy ](https://profiles.wordpress.org/flynsarmy/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/multisite-admin-bar-switcher/)