You could filter get_blogs_of_user
and add this particular blog to the returned list. Pseudo-code, not tested:
add_filter( 'get_blogs_of_user', 'add_special_blog', 10, 3 );
function add_special_blog( $blogs, $user_id, $all )
{
$new_blog = get_blog_details( $special_blog_id );
$blogs[ $special_blog_id ] = (object) array(
'userblog_id' => $special_blog_id,
'blogname' => $new_blog->blogname,
'domain' => $new_blog->domain,
'path' => $new_blog->path,
'site_id' => $new_blog->site_id,
'siteurl' => $new_blog->siteurl,
'archived' => 0,
'spam' => 0,
'deleted' => 0
);
return $blogs;
}
Related Posts:
- Why are my roles not visible in a Multi-site/Network?
- Prevent user creating new users with specific roles
- WPMU – new users are automatically subscribed to the main blog – how to prevent that?
- Update User Role Across Network when Main Site User is Updated
- Assign role to user on first login, if they are first (after admin)
- Get the User ID Who Owns a Given Blog ID in Multisite
- Make a user administrator to a sub directory site and a contributor to main site in multisite network
- How to change user starting role in WordPress MultiSite?
- Create Custom Multisite User Role to Reduce Capabilities
- Copy user role on multisite so the user can access subsites with same role
- WordPress Multisite Add User
- can’t create user without email for an author after converting single site to multisite
- Easily adding multiple existing users to a multisite site
- A different role for each site in a multisite
- How to create child/sub user under parent user
- How create a multisite setup with “phantom” accounts and passwords?
- How To Add Custom Form Fields To The User Profile Page?
- Where are available Roles Defined in the wp_ database?
- How to use same email for multiple users
- Where can I find documentation on what characters are allowed in user names and why?
- WordPress Multisite allow site admin to add user without email confirmation
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- Network not displaying all sites and users
- Give to site admin the option to “skip confirmation email” when adding new user
- Different back-end colour scheme for the different sites of a multisite
- Set up collaborative site
- How can I display all Multisite blogs where this user is administrator?
- Add role across network in multisite
- Restrict users on multisite WordPress install
- Possible to make custom role in multisite that can add sites?
- WordPress Multisite Layered Admins
- Synchronizing Two WordPress Sites Content
- How to add multiple existing users to a multisite site?
- How to get a user role of a specific blog in multisite?
- the blog owner multisite
- Identical members roles on all sites in a multisite
- How can I get multisite primary blog (url or path) for current user?
- Can I use multisite functions in a single-site installation?
- How can I delete a user from entire multisite nework
- delete_user_meta : how to delete all the metadata of a given user (witout SQL)
- Within the database, where is the flag which says that a user has Super Admin rights?
- Avoid having infinite loops
- Create custom role, multisite, add users/sites?
- Displaying a message upon user registration
- access the plugins for each role in WordPress multisite
- Allow Author on Site A capability to upload files on Site B in Multi Site
- Multisite – One user allowed access to all sites?
- Add a user to a specific blog when they register?
- Four columns in the wp_users table
- Subsite access without being a member of the subsite in wp multisite network
- Multisite user roles – capabilities not working
- WordPress stuck in deleting user
- Admin permission for creating blogs in multisite
- How to display users with posts published between two dates (Sorted by Post-Count) [Multisite]
- Get users registered 30 days ago(or more)
- Multisite – maximum number of users with specific role
- Remove superadmin role from the “change role to” menu in user listing
- How to change a user role after registering in multisite?
- How To Disable Add new users On Subsites In Multisite?
- How to sync roles across Multisite?
- Wait ajax to complete before continue loop
- Delete user from multisite when removed from subsite
- Combining user database tables while keeping all other data in seperate for multiple sites?
- How to delete user from MU site when the user is removed from their site?
- WordPress multisite, allow non super admins to create sites
- Customize or avoid new admin email address notification
- How to share User Database between Two Multisite Installations + More
- How to get the blogs owned by a user?
- How to redirect user after session timeout
- WPMU If MU site has no administrator, deactivate site
- Creating teams of users in WordPress
- Give users acces to admin a single post or set up WP network?
- Restrict users of site 1 to login in site 2 in wordpress multisite
- “My Sites” incorrectly showing all network sites for all logged in users
- How to use the same users table on multiple wordpress sites
- Language per user role, how can I achieve this?
- Admin users not able to see network menus
- let user select roles in the wordpress subsites
- Possible to have duplicate usernames on different two multisites
- Multisite – each site with it’s own set of users
- User Roles in multisite – odd behavior
- Multisite – site user limited only for this site
- WordPress single sign on using cookies with shared user role functionality between more than 2 wordpress subdomains
- Can’t activate a user on multisite install
- Importing Posts into New Website with Same User ID’s
- Multisite error when adding a user: already a member of this site
- Is Multisite the RIGHT option for my case?
- Should I use MultiSite for a subdomain based wp site?
- Multisite “Skip Confirmation Email” Log Out Problem
- Get current user outside of WordPress Multisite
- WordPress MU users – how are they organized?
- Get users from all/specific blog by user_role and current_user role
- How can I display all Multisite blogs where this user is administrator?
- How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite
- Multisite and users being listed on network administration dashboard and not main site dashboard
- Using a number for limiting registering or banning on multisite
- Unsure of my options, Multi-blog?
- WordPress Multisite (Network) some site users added to main site users list as subscriber
- WordPress Multisite restict user access
- Change a subsite Admin role of a WordPress Multisite after 24 hours registering