A WordPress-centric search engine for devs and theme authors



update_archived ›

Since3.0.0
Deprecatedn/a
update_archived ( $id, $archived )
Parameters: (2)
  • (int) $id The blog id
    Required: Yes
  • (string) $archived The new status
    Required: Yes
Returns:
  • (string) $archived
Defined at:
Codex:
Change Log:
  • MU

Update the 'archived' status of a particular blog.



Source

function update_archived( $id, $archived ) {
	update_blog_status( $id, 'archived', $archived );
	return $archived;
}