wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/ms-blogs.php › WordPress File
Functions26
› Site/blog functions that work with the blogs table and related data.
Function | Short description |
---|---|
add_blog_option | Adds a new option for a given blog ID. |
clean_site_details_cache | Cleans the site details cache for a site. |
delete_blog_option | Removes an option by name for a given blog ID. Prevents removal of protected WordPress options. |
get_blogaddress_by_id | Gets a full site URL, given a site ID. |
get_blogaddress_by_name | Gets a full site URL, given a site name. |
get_blog_details | Retrieves the details for a blog from the blogs table and blog options. |
get_blog_option | Retrieves option value for a given blog id based on name of option. |
get_blog_status | Gets a blog details field. |
get_id_from_blogname | Retrieves a site's ID given its (subdomain or directory) slug. |
get_last_updated | Gets a list of most recently updated blogs. |
is_archived | Checks if a particular blog is archived. |
ms_is_switched | Determines if switch_to_blog() is in effect. |
refresh_blog_details | Clears the blog details cache. |
restore_current_blog | Restores the current blog, after calling switch_to_blog(). |
switch_to_blog | Switches the current blog. |
update_archived | Updates the 'archived' status of a particular blog. |
update_blog_details | Updates the details for a blog and the blogs table for a given blog ID. |
update_blog_option | Updates an option for a particular blog. |
update_blog_status | Updates a blog details field. |
wpmu_update_blogs_date | Updates the last_updated field for the current site. |
wp_count_sites | Counts number of sites grouped by site status. |
wp_switch_roles_and_user | Switches the initialized roles and current user capabilities to another site. |
_update_blog_date_on_post_delete | Handler for updating the current site's last updated date when a published post is deleted. |
_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 changed. |
_update_posts_count_on_delete | Handler for updating the current site's posts count when a post is deleted. |
_update_posts_count_on_transition_post_status | Handler for updating the current site's posts count when a post status changes. |