tables_to_repair

過濾鉤子
apply_filters( 'tables_to_repair', array()
引數
  • (string[]) $tables Array of prefixed table names to be repaired.
    Required:
定義位置
相關勾子
terms_to_editget_blogs_of_userrest_prepare_usereditable_rolesrest_prepare_theme
相關方法
the_author_emailget_tags_to_edithas_custom_headerget_blogs_of_userget_real_file_to_editthe_author_aim
引入
3.0.0
棄用
-

tables_to_repair: 這是一個WordPress過濾鉤子,允許開發者指定一個需要修復的表的列表,作為WordPress資料庫維護過程的一部分。

過濾額外的資料庫表來修復。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) );
$tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) );
$tables = array_merge( $tables, (array) apply_filters( 'tables_to_repair', array() ) );

常見問題

FAQs
檢視更多 >