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

Developer Resources

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

wp_count_sites()

Function: Count number of sites grouped by site status.

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

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:690

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:883

Used by 0 functions | Uses 2 functions

_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:903

Used by 0 functions | Uses 2 functions

get_blog_status()

Function: Get a blog details field.

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

Used by 1 function | Uses 3 functions

get_last_updated()

Function: Get a list of most recently updated blogs.

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

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:838

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:861

Used by 0 functions | Uses 3 functions

switch_to_blog()

Function: Switch the current blog.

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

Used by 35 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: Restore the current blog, after calling switch_to_blog() .

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

Used by 34 functions | Uses 8 functions

ms_is_switched()

Function: Determines if switch_to_blog() is in effect

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

Used by 2 functions | Uses 0 functions

is_archived()

Function: Check if a particular blog is archived.

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

Used by 0 functions | Uses 1 function

update_archived()

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

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

Used by 0 functions | Uses 1 function

update_blog_status()

Function: Update a blog details field.

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

Used by 3 functions | Uses 3 functions

add_blog_option()

Function: Add 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 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: Update an option for a particular blog.

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

Used by 1 function | Uses 5 functions

refresh_blog_details()

Function: Clear the blog details cache.

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

Used by 0 functions | Uses 2 functions

update_blog_details()

Function: Update the details for a blog. Updates 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: Retrieve 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: Update 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: Get a full blog URL, given a blog ID.

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

Used by 2 functions | Uses 2 functions

get_blogaddress_by_name()

Function: Get a full blog URL, given a blog 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: Retrieve the details for a blog from the blogs table and blog options.

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

Used by 1 function | 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
Code is Poetry