update_archived()
Updates the 'archived' status of a particular blog.
Хуков нет.
Возвращает
string. $archived
Использование
update_archived( $id, $archived );
- $id(int) (обязательный)
- Blog ID.
- $archived(строка) (обязательный)
- The new status.
Список изменений
| С версии 3.0.0 | Введена. |
Код update_archived() update archived WP 7.1.3
function update_archived( $id, $archived ) {
update_blog_status( $id, 'archived', $archived );
return $archived;
}