WordPress.org

Ready to get started?Download WordPress

Codex

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

WPMU Functions/update blog status

Description

Updates the specified blog's status, allowing you to set the integer lang_id or any of the following to true or false.

  • public
  • archived
  • mature
  • spam
  • deleted
  • lang_id

If $refresh is true then it will refresh the blog details.

Parameters

$id
(integer) (required) The id of the blog being updated.
Default: None
$pref
(string) (required) The status type being updated.
Default: None
$value
(integer) (required) The value of the status type.
Default: None
$refresh
(boolean) (optional) Whether or not to refresh the blog details using refresh_blog_details().
Default: true

Return Values

(integer) 
Returns the updated status for that blog.

Usage

<?php update_blog_status($id$pref$value$refresh); ?>