WordPress multisite network plugin to allow Network Admin to set the "Primary Blog" (aka Primary Site) of a user while editing a profile.
The original code for the Primary Site switcher is in wp-admin-includes/ms.php. I've basically copied that, but changed
$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>
Requires: 3.0 or higher
Compatible up to: 4.6
Last Updated: 3 weeks ago
Active Installs: 30+
Got something to say? Need help?