File: wp-includes/ms-blogs.php
-
functionwp_count_sites()
Counts number of sites grouped by site status.
-
functionwp_switch_roles_and_user()
Switches the initialized roles and current user capabilities to another site.
-
functionclean_site_details_cache()
Cleans the site details cache for a site.
-
function_update_posts_count_on_delete()
Handler for updating the current site’s posts count when a post is deleted.
-
Handler for updating the current site’s posts count when a post status changes.
-
functionget_blog_status()
Gets a blog details field.
-
functionget_last_updated()
Gets a list of most recently updated blogs.
-
Handler for updating the site’s last updated date when a post is published or an already published post is changed.
-
Handler for updating the current site’s last updated date when a published post is deleted.
-
functionswitch_to_blog()
Switches the current blog.
-
hookswitch_blog
Fires when the blog is switched.
-
functionrestore_current_blog()
Restores the current blog, after calling switch_to_blog().
-
functionms_is_switched()
Determines if switch_to_blog() is in effect.
-
functionis_archived()
Checks if a particular blog is archived.
-
functionupdate_archived()
Updates the ‘archived’ status of a particular blog.
-
functionupdate_blog_status()
Updates a blog details field.
-
functionadd_blog_option()
Adds a new option for a given blog ID.
-
functiondelete_blog_option()
Removes an option by name for a given blog ID. Prevents removal of protected WordPress options.
-
functionupdate_blog_option()
Updates an option for a particular blog.
-
functionrefresh_blog_details()
Clears the blog details cache.
-
functionupdate_blog_details()
Updates the details for a blog and the blogs table for a given blog ID.
-
functionget_blog_option()
Retrieves option value for a given blog id based on name of option.
-
Filters a blog option value.
-
functionwpmu_update_blogs_date()
Updates the last_updated field for the current site.
-
Fires after the blog details are updated.
-
functionget_blogaddress_by_id()
Gets a full site URL, given a site ID.
-
functionget_blogaddress_by_name()
Gets a full site URL, given a site name.
-
functionget_id_from_blogname()
Retrieves a site’s ID given its (subdomain or directory) slug.
-
functionget_blog_details()
Retrieves the details for a blog from the blogs table and blog options.
-
hookblog_details
Filters a blog’s details.