Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Mobile
    • Hosting
    • Openverse ↗︎
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
  • Community
    • Make WordPress
    • Photo Directory
    • Five for the Future
    • WordCamp ↗︎
    • Meetups ↗︎
    • Job Board ↗︎
  • About
    • About WordPress
    • Showcase
    • Enterprise
    • Gutenberg ↗︎
    • WordPress Swag Store ↗︎
  • Get WordPress
Get WordPress

Developer Resources

Browse: Home / Reference / wp-includes/ms-blogs.php

wp_count_sites()

Function: Counts number of sites grouped by site status.

Source: wp-includes/ms-blogs.php:940

Used by 1 function | Uses 2 functions

wp_switch_roles_and_user()

Function: Switches the initialized roles and current user capabilities to another site.

Source: wp-includes/ms-blogs.php:694

Used by 0 functions | Uses 4 functions

clean_site_details_cache()

Function: Cleans the site details cache for a site.

Source: wp-includes/ms-blogs.php:329

Used by 0 functions | Uses 2 functions

_update_posts_count_on_delete()

Function: Handler for updating the current site’s posts count when a post is deleted.

Source: wp-includes/ms-blogs.php:889

Used by 0 functions | Uses 1 function

_update_posts_count_on_transition_post_status()

Function: Handler for updating the current site’s posts count when a post status changes.

Source: wp-includes/ms-blogs.php:907

Used by 0 functions | Uses 2 functions

get_blog_status()

Function: Gets a blog details field.

Source: wp-includes/ms-blogs.php:798

Used by 1 function | Uses 3 functions

get_last_updated()

Function: Gets a list of most recently updated blogs.

Source: wp-includes/ms-blogs.php:822

Used by 0 functions | Uses 4 functions

_update_blog_date_on_post_publish()

Function: Handler for updating the site’s last updated date when a post is published or an already published post is changed.

Source: wp-includes/ms-blogs.php:842

Used by 0 functions | Uses 2 functions

_update_blog_date_on_post_delete()

Function: Handler for updating the current site’s last updated date when a published post is deleted.

Source: wp-includes/ms-blogs.php:865

Used by 0 functions | Uses 3 functions

switch_to_blog()

Function: Switches the current blog.

Source: wp-includes/ms-blogs.php:500

Used by 36 functions | Uses 8 functions

switch_blog

Action Hook: Fires when the blog is switched.

Source: wp-includes/ms-blogs.php:527

Used by 2 functions | Uses 0 functions

restore_current_blog()

Function: Restores the current blog, after calling switch_to_blog() .

Source: wp-includes/ms-blogs.php:607

Used by 35 functions | Uses 8 functions

ms_is_switched()

Function: Determines if switch_to_blog() is in effect.

Source: wp-includes/ms-blogs.php:716

Used by 2 functions | Uses 0 functions

is_archived()

Function: Checks if a particular blog is archived.

Source: wp-includes/ms-blogs.php:728

Used by 0 functions | Uses 1 function

update_archived()

Function: Updates the ‘archived’ status of a particular blog.

Source: wp-includes/ms-blogs.php:741

Used by 0 functions | Uses 1 function

update_blog_status()

Function: Updates a blog details field.

Source: wp-includes/ms-blogs.php:760

Used by 3 functions | Uses 3 functions

add_blog_option()

Function: Adds a new option for a given blog ID.

Source: wp-includes/ms-blogs.php:403

Used by 0 functions | Uses 4 functions

delete_blog_option()

Function: Removes an option by name for a given blog ID. Prevents removal of protected WordPress options.

Source: wp-includes/ms-blogs.php:430

Used by 0 functions | Uses 4 functions

update_blog_option()

Function: Updates an option for a particular blog.

Source: wp-includes/ms-blogs.php:459

Used by 1 function | Uses 5 functions

refresh_blog_details()

Function: Clears the blog details cache.

Source: wp-includes/ms-blogs.php:282

Used by 0 functions | Uses 2 functions

update_blog_details()

Function: Updates the details for a blog and the blogs table for a given blog ID.

Source: wp-includes/ms-blogs.php:302

Used by 1 function | Uses 2 functions

get_blog_option()

Function: Retrieves option value for a given blog id based on name of option.

Source: wp-includes/ms-blogs.php:356

Used by 6 functions | Uses 5 functions

blog_option_{$option}

Filter Hook: Filters a blog option value.

Source: wp-includes/ms-blogs.php:381

Used by 1 function | Uses 0 functions

wpmu_update_blogs_date()

Function: Updates the last_updated field for the current site.

Source: wp-includes/ms-blogs.php:19

Used by 2 functions | Uses 4 functions

wpmu_blog_updated

Action Hook: Fires after the blog details are updated.

Source: wp-includes/ms-blogs.php:30

Used by 1 function | Uses 0 functions

get_blogaddress_by_id()

Function: Gets a full site URL, given a site ID.

Source: wp-includes/ms-blogs.php:41

Used by 2 functions | Uses 2 functions

get_blogaddress_by_name()

Function: Gets a full site URL, given a site name.

Source: wp-includes/ms-blogs.php:62

Used by 0 functions | Uses 3 functions

get_id_from_blogname()

Function: Retrieves a site’s ID given its (subdomain or directory) slug.

Source: wp-includes/ms-blogs.php:86

Used by 2 functions | Uses 3 functions

get_blog_details()

Function: Retrieves the details for a blog from the blogs table and blog options.

Source: wp-includes/ms-blogs.php:128

Used by 0 functions | Uses 14 functions

blog_details

Filter Hook (deprecated): Filters a blog’s details.

Source: wp-includes/ms-blogs.php:265

Used by 2 functions | Uses 0 functions
  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our YouTube channel
Code is Poetry