wp-includes/ms-blogs.php


Lines:

1 to 68 of 68
<?php


/**
 * Site/blog functions that work with the blogs table and related data.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since MU (3.0.0)
 */

require_once ABSPATH . WPINC . '/ms-site.php';
require_once ABSPATH . WPINC . '/ms-network.php';

/* function wpmu_update_blogs_date() – Update the last_updated field for the current site. */

/* function get_blogaddress_by_id() – Get a full blog URL, given a blog id. */

/* function get_blogaddress_by_name() – Get a full blog URL, given a blog name. */

/* function get_id_from_blogname() – Retrieves a sites ID given its (subdomain or directory) slug. */

/* function get_blog_details() – Retrieve the details for a blog from the blogs table and blog options. */

/* function refresh_blog_details() – Clear the blog details cache. */

/* function update_blog_details() – Update the details for a blog. Updates the blogs table for a given blog id. */

/* function clean_site_details_cache() – Cleans the site details cache for a site. */

/* function get_blog_option() – Retrieve option value for a given blog id based on name of option. */

/* function add_blog_option() – Add a new option for a given blog id. */

/* function delete_blog_option() – Removes option by name for a given blog id. Prevents removal of protected WordPress options. */

/* function update_blog_option() – Update an option for a particular blog. */

/* function switch_to_blog() – Switch the current blog. */

/* function restore_current_blog() – Restore the current blog, after calling switch_to_blog(). */

/* function wp_switch_roles_and_user() – Switches the initialized roles and current user capabilities to another site. */

/* function ms_is_switched() – Determines if switch_to_blog() is in effect */

/* function is_archived() – Check if a particular blog is archived. */

/* function update_archived() – Update the ‘archived’ status of a particular blog. */

/* function update_blog_status() – Update a blog details field. */

/* function get_blog_status() – Get a blog details field. */

/* function get_last_updated() – Get a list of most recently updated blogs. */

/* function _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. */

/* function _update_blog_date_on_post_delete() – Handler for updating the current site’s last updated date when a published
post is deleted. */

/* function _update_posts_count_on_delete() – Handler for updating the current site’s posts count when a post is deleted. */

/* function _update_posts_count_on_transition_post_status() – Handler for updating the current site’s posts count when a post status changes. */

/* function wp_count_sites() – Count number of sites grouped by site status. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,,