WordPress.org

  • Showcase
  • Themes
  • Plugins
  • Mobile
  • Support
    • Documentation
    • Forums
  • Get Involved
  • About
  • Blog
  • Hosting
  • Get WordPress

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Reference / wp-includes/ms-blogs.php

wp_switch_roles_and_user()

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

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

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

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

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

Used by 0 functions | Uses 2 functions

is_archived()

Function: Check if a particular blog is archived.

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

Used by 0 functions | Uses 1 function

update_archived()

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

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

Used by 0 functions | Uses 1 function

update_blog_status()

Function: Update a blog details field.

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

Used by 3 functions | Uses 3 functions

get_blog_status()

Function: Get a blog details field.

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

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

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

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

Used by 0 functions | Uses 3 functions

switch_to_blog()

Function: Switch the current blog.

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

Used by 35 functions | Uses 9 functions

switch_blog

Action Hook: Fires when the blog is switched.

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

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

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

Used by 2 functions | Uses 0 functions

refresh_blog_details()

Function: Clear the blog details cache.

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

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

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

Used by 5 functions | Uses 6 functions

blog_option_{$option}

Filter Hook: Filters a blog option value.

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

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

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

Used by 0 functions | Uses 4 functions

update_blog_option()

Function: Update an option for a particular blog.

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

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

Used by 0 functions | Uses 15 functions

blog_details

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

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

Used by 2 functions | Uses 0 functions
  • About
  • Blog
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Showcase
  • Plugins
  • Themes
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
  • @WordPress
  • WordPress

Code is Poetry.

Skip to toolbar
  • About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register