wpmu_drop_tables

过滤钩子


apply_filters( 'wpmu_drop_tables', $tables, $site->id )
参数
  • (string[])
    $tables
    Array of names of the site tables to be dropped.
    Required:
  • (int)
    $site_id
    The ID of the site to drop tables for.
    Required:
定义位置
  • wp-includes/ms-site.php
    , line 814
引入
MU (3.0.0)
弃用

当网站被删除时,过滤要删除的表。

$drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $site->id );