display_theme

函式
display_theme ( $theme )
引數
  • (object) $theme
    Required:
定義位置
相關方法
display_themesdisplay_headerdisplay_header_textis_child_themedisplay_setup_form
引入
-
棄用
3.4.0

display_theme: 這個函式用來在WordPress儀表盤上顯示當前活動主題的細節。

在安裝主題頁面上列印一個主題。

function display_theme( $theme ) {
	_deprecated_function( __FUNCTION__, '3.4.0' );
	global $wp_list_table;
	if ( ! isset( $wp_list_table ) ) {
		$wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' );
	}
	$wp_list_table->prepare_items();
	$wp_list_table->single_row( $theme );
}

常見問題

FAQs
檢視更多 >