Skip to content
This repository

The Multisite Language Switcher uses the wordpress-function get_blogs_of_user to get all admin's blogs of the current blog. There is a msls_blog_collection_construct-filter which can be used to override this behaviour and to manipulate the blog-collection:

function my_msls_blog_collection_get( $arr ) {
    $arr = array();
    foreach ( array( 1, 2, ) as $id ) {
        $arr[$id] = get_blog_details( $id );
    return $arr;
add_filter( 'msls_blog_collection_construct', 'my_msls_blog_collection_get' );
Something went wrong with that request. Please try again.