Tag Info

Hot answers tagged


To get all blogs/subsites a user is registered to, use get_blogs_of_user() $sites = get_blogs_of_user( get_current_user_id() ); This will fetch all sites that aren't marked as archived, spam or deleted. This will as well work in a single site environment, returning a an array with a single numerical key that has a stdClass object as value: $sites = ...

Only top voted, non community-wiki answers of a minimum length are eligible