WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/update blog status

Description

Update a blog details field.

Usage

<?php update_blog_status$blog_id$pref$value$refresh ?>

Parameters

$blog_id
(integer) (required) Blog ID
Default: None
$pref
(string) (required) A field name
Default: None
$value
(string) (required) Value for $pref
Default: None
$refresh
(boolean) (optional) Whether to refresh the blog details cache. Default is true. Deprecated in version 3.1.
Default: true

Return Values

(void) 
This function does not return a value.

Examples

Notes

  • Uses global: (object) $wpdb

Change Log

Since: 3.0.0

Source File

update_blog_status() is located in /wp-includes/ms-blogs.php.

Related