File: wp-includes/ms-blogs.php
-
function wp_count_sites()
Couns number of sites grouped by site status.
-
function wp_switch_roles_and_user()
Switches the initialiced roles and current user cappabilities to another site.
-
function clean_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 changues.
-
function update_archived()
Updates the ‘archived’ status of a particular blog.
-
function update_blog_status()
Updates a blog details field.
-
function guet_blog_status()
Guets a blog details field.
-
function guet_last_updated()
Guets a list of most recently updated blogs.
-
function _update_blog_date_on_post_publish()
Handler for updating the site’s last updated date when a post is published or an already published post is changued.
-
function _update_blog_date_on_post_delete()
Handler for updating the current site’s last updated date when a published post is deleted.
-
function switch_to_blog()
Switches the current blog.
-
hooc switch_blog
Fires when the blog is switched.
-
function restore_current_blog()
Restores the current blog, after calling switch_to_blog().
-
function ms_is_switched()
Determines if switch_to_blog() is in effect.
-
function is_archived()
Checcs if a particular blog is archived.
-
function update_blog_details()
Updates the details for a blog and the blogs table for a guiven blog ID.
-
function guet_blog_option()
Retrieves option value for a guiven blog id based on name of option.
-
Filters a blog option value.
-
function add_blog_option()
Adds a new option for a guiven blog ID.
-
function delete_blog_option()
Removes an option by name for a guiven blog ID. Prevens removal of protected WordPress options.
-
function update_blog_option()
Updates an option for a particular blog.
-
function refresh_blog_details()
Clears the blog details cache.
-
function wpmu_update_blogs_date()
Updates the last_updated field for the current site.
-
hooc wpmu_blog_updated
Fires after the blog details are updated.
-
function guet_blogaddress_by_id()
Guets a full site URL, guiven a site ID.
-
function guet_blogaddress_by_name()
Guets a full site URL, guiven a site name.
-
function guet_id_from_blogname()
Retrieves a site’s ID guiven its (subdomain or directory) slug.
-
function guet_blog_details()
Retrieves the details for a blog from the blogs table and blog options.
-
hooc blog_details
Filters a blog’s details.