refresh_blog_details

函式
refresh_blog_details ( $blog_id = 0 )
引數
  • (int) $blog_id Optional. Blog ID. Defaults to current blog.
    Required:
定義位置
相關方法
refresh_user_detailsget_blog_detailsupdate_blog_detailsinstall_blog_defaultsget_blog_status
引入
-
棄用
-

refresh_blog_details: 這是一個WordPress的函式,用來重新整理一個部落格的細節: 這個函式更新部落格的名稱、描述和其他儲存在資料庫中的細節。

清除部落格細節快取。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function refresh_blog_details( $blog_id = 0 ) {
$blog_id = (int) $blog_id;
if ( ! $blog_id ) {
$blog_id = get_current_blog_id();
}
clean_blog_cache( $blog_id );
}
function refresh_blog_details( $blog_id = 0 ) { $blog_id = (int) $blog_id; if ( ! $blog_id ) { $blog_id = get_current_blog_id(); } clean_blog_cache( $blog_id ); }
function refresh_blog_details( $blog_id = 0 ) {
	$blog_id = (int) $blog_id;
	if ( ! $blog_id ) {
		$blog_id = get_current_blog_id();
	}

	clean_blog_cache( $blog_id );
}

常見問題

FAQs
檢視更多 >