get_site_allowed_themes

函式
get_site_allowed_themes ( No parameters )
相關
  • WP_Theme::get_allowed_on_network()
定義位置
相關方法
get_allowed_themeswpmu_get_blog_allowedthemesget_space_allowedget_allowed_mime_typesrest_send_allow_header
引入
-
棄用
3.4.0

get_site_allowed_themes: 這個函式檢索一個特定站點的允許主題陣列。它需要一個引數:網站的ID。它返回一個字串形式的允許主題的陣列。

獲得支援網路的主題的功能已經過時。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_site_allowed_themes() {
_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' );
return array_map( 'intval', WP_Theme::get_allowed_on_network() );
}
function get_site_allowed_themes() { _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' ); return array_map( 'intval', WP_Theme::get_allowed_on_network() ); }
function get_site_allowed_themes() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' );
	return array_map( 'intval', WP_Theme::get_allowed_on_network() );
}

常見問題

FAQs
檢視更多 >