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

WPMU Functions/update blog status


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.


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

Return Values

Returns the updated status for that blog.


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