Title: Primary Blog Switcher for SuperAdmins
Author: David Sader
Published: <strong>16. August 2010</strong>
Last modified: 8. August 2016

---

Plugins suchen

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://s.w.org/plugins/geopattern-icon/primary-blog-switcher-for-superadmins.
svg)

# Primary Blog Switcher for SuperAdmins

 Von [David Sader](https://profiles.wordpress.org/dsader/)

[Herunterladen](https://downloads.wordpress.org/plugin/primary-blog-switcher-for-superadmins.zip)

 * [Details](https://de.wordpress.org/plugins/primary-blog-switcher-for-superadmins/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/primary-blog-switcher-for-superadmins/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/primary-blog-switcher-for-superadmins/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/primary-blog-switcher-for-superadmins/#developers)

 [Support](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/)

## Beschreibung

WordPress [Multisite](https://codex.wordpress.org/Create_A_Network) network plugin
to allow Network Admin to set the „Primary Blog“ (aka Primary Site) of a user while
editing a user’s profile.

Well, for whatever reasons (usually users fiddling around – I use WP multisite in
a school with students grades 4-12), users aren’t attached(or become unattached)
to the correct „Primary Blog“.

This isn’t a deal breaker, but annoying when they login and are redirected to a 
blog that is not their expected primary. It also is annoying when I use other plugins
to list user primary blog for display in a member directory, member profiles, etc.

Telling users to reset their primary blog at their own Dashboard->My Blogs is a 
fix, but the SuperAdmin(Teacher in my case) can head off the confusion first with
this plugin. There is no other way(AFAIK) for the Network Admin to set the „Primary
Blog“ of a user while editing their profile.

Now, I can quickly scan the Network Admin list of users and edit profiles and set
primary blogs of any user correctly.

I can also use my [Menus plugin](https://wordpress.org/extend/plugins/menus/) to
toggle the My Sites menu item so users can no longer fiddle with the Primary Site
switcher at all. Problem solved.

### Hinweise

The original code for the Primary Site switcher is in wp-admin-includes/ms.php. 
I’ve basically copied that, but changed `get_current_user_id()` to `$edit_user =(
int) $_GET['user_id'];` and added it to the „edit_user_profile“ hook.

The plugin can be used to add users to a „Special Blog“ by uncomment(remove the /*
and */) this section in the plugin code and change the $special_blog_id:

    ```
    <optgroup label="Other Blogs"></optgroup>
    <optgroup label="Special Blog">
    <?php $special_blog_id = '63'; //
    $special_blog = get_blog_details( $special_blog_id ); ?>
    <option value='<?php echo $special_blog_id ?>'>http://<?php echo $special_blog->domain.$special_blog->path ?></option>
    </optgroup>
    ```

## Installation

In diesem Abschnitt wird beschrieben, wie du das Plugin installieren kannst und 
wie es arbeitet.

 1. Upload the plugin to your blog, Network Activate it
 2. Edit user profiles as Network Dashboard->Users->Edit
 3. View Network Dashboard for notices of users who have the main blog set as their
    primary blog, or no blog at all.

## FAQ

 * Can I set the Main blog as a user’s primary? Yes.
 * Can I set the Dashboard blog (if enabled) as a user’s primary? Yes.
 * Can I set Donncha’s Sitewide Tags blog (if enabled) as a user’s primary? Yes.
 * Can I add a user to some other blog „special blog“ as their primary? Yes, but
   see „special blog“ comments in the plugin code.
 * Does this plugin filter the list of blogs already listed at a user’s Dashboard-
   >My Sites->Primary Site? No.
 * I can’t change a user’s primary blog, there are no blogs to choose from in the
   dropdown on their profile? Add the user first to a couple of blogs and try again.

## Rezensionen

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

### 󠀁[Exactly the solution I needed](https://wordpress.org/support/topic/exactly-the-solution-i-needed/)󠁿

 [kalico](https://profiles.wordpress.org/kalico/) 3. September 2016

It was driving me nuts to figure out how to change a user's primary blog. This did
the trick! Thank you so much!

 [ Alle 2 Rezensionen lesen ](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/)

## Mitwirkende und Entwickler

„Primary Blog Switcher for SuperAdmins“ ist Open-Source-Software. Folgende Menschen
haben an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ David Sader ](https://profiles.wordpress.org/dsader/)

[Übersetze „Primary Blog Switcher for SuperAdmins“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/primary-blog-switcher-for-superadmins)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/primary-blog-switcher-for-superadmins/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/primary-blog-switcher-for-superadmins/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/primary-blog-switcher-for-superadmins/)
per [RSS](https://plugins.trac.wordpress.org/log/primary-blog-switcher-for-superadmins/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 4.6

 * WP 4.6 tests OK, cleanup php notices

## Meta

 *  Version **4.6**
 *  Zuletzt aktualisiert **vor 10 Jahren**
 *  Aktive Installationen **10+**
 *  WordPress-Version ** 3.0 oder höher **
 *  Getestet bis **4.6.30**
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/primary-blog-switcher-for-superadmins/)
 * Schlagwörter
 * [multisite](https://de.wordpress.org/plugins/tags/multisite/)[network](https://de.wordpress.org/plugins/tags/network/)
   [profile](https://de.wordpress.org/plugins/tags/profile/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/primary-blog-switcher-for-superadmins/advanced/)

## Bewertungen

 5 von 5 Sternen.

 *  [  2 5-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/?filter=1)

[Deine Rezension](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/reviews/)

## Mitwirkende

 *   [ David Sader ](https://profiles.wordpress.org/dsader/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/primary-blog-switcher-for-superadmins/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](http://dsader.snowotherway.org)