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:
定義位置
相關勾子
wpmu_optionsmu_dropdown_languageswp_script_attributeswp_robotswpmu_delete_user
相關方法
wp_dropdown_pageswp_dropdown_roleswp_roleswp_dropdown_catswp_crop_imagewp_is_writable
引入
MU (3.0.0)
棄用
-

wpmu_drop_tables:這是一個 WordPress 功能,可以在多站點網路中刪除部落格的表格。刪除部落格時會呼叫此函式,它會從資料庫中刪除與該部落格關聯的所有資料。

當網站被刪除時,過濾要刪除的表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $site->id );
$drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $site->id );
$drop_tables = apply_filters( 'wpmu_drop_tables', $tables, $site->id );

常見問題

FAQs
檢視更多 >