make_db_current_silent

函式
make_db_current_silent ( $tables = 'all' )
引數
  • (string) $tables Optional. Which set of tables to update. Default is 'all'.
    Required:
    Default: 'all'
相關
  • make_db_current()
定義位置
相關方法
make_db_currentget_current_sitewpmu_current_siteget_current_screenset_current_screen
引入
1.5.0
棄用
-

make_db_current_silent: 這是WordPress中的一個函式,它可以更新WordPress的資料庫模式以匹配當前版本的WordPress,而不向使用者顯示任何資訊或提示。你可以使用這個函式在後臺默默地更新資料庫模式。

將資料庫表更新到一個新的模式,但不顯示結果。

預設情況下,更新所有的表以使用最新定義的模式,但也可以用來更新wp_get_db_schema()中的特定表集。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function make_db_current_silent( $tables = 'all' ) {
dbDelta( $tables );
}
function make_db_current_silent( $tables = 'all' ) { dbDelta( $tables ); }
function make_db_current_silent( $tables = 'all' ) {
	dbDelta( $tables );
}

常見問題

FAQs
檢視更多 >