delete_blog
do_action_deprecated( ‘delete_blog’, int $site_id , bool $drop )
操作挂钩(已弃用):在删除站点之前激发。
Action Hook (deprecated): Fires before a site is deleted.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$site_id | (int) | 站点ID。 |
$drop | (bool) | 如果应删除站点的表,则为True。默认值为false。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.1.0 | wp-includes/ms-site.php:243 | 2 | 0 |
delete_blog 为WP2原创文章,链接:https://www.wp2.cn/hook/delete_blog/