archive_blog
do_action( ‘archive_blog’, int $site_id )
操作挂钩:当“存档”状态添加到站点时激发。
Action Hook: Fires when the ‘archived’ status is added to a site.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$site_id | (int) | 站点ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
MU (3.0.0) | wp-includes/ms-site.php:1216 | 1 | 0 |
archive_blog 为WP2原创文章,链接:https://www.wp2.cn/hook/archive_blog/