• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register

WordPress.org

  • Showcase
  • Learn
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
    • Five for the Future
  • About
  • Blog
  • Hosting
  • Get WordPress

Code Reference

Skip to content
Filter by type:
Search
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:896

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

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

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

Used by 0 functions | Uses 2 functions

is_archived()

Function: Check if a particular blog is archived.

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

Used by 0 functions | Uses 1 function

update_archived()

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

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

Used by 0 functions | Uses 1 function

update_blog_status()

Function: Update a blog details field.

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

Used by 3 functions | Uses 3 functions

get_blog_status()

Function: Get a blog details field.

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

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

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

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

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 9 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:585

Used by 34 functions | Uses 9 functions

ms_is_switched()

Function: Determines if switch_to_blog() is in effect

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

Used by 2 functions | Uses 0 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 6 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

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

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 5 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 sites 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 15 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
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
  • @WordPress
  • WordPress

Code is Poetry.