screen_layout

函式
screen_layout ( $screen )
相關
  • WP_Screen::render_screen_layout()
定義位置
相關方法
screen_iconscreen_metascreen_optionsadd_screen_optionset_screen_options
引入
2.8.0
棄用
3.3.0

screen_layout: 這是一個WordPress的函式,顯示WordPress管理區中當前螢幕的螢幕布局選項。它通常用於定製螢幕的佈局,如列的數量或側邊欄的位置: 這個函式需要一個引數,就是螢幕的名稱。

返回螢幕布局選項。

function screen_layout( $screen ) {
	_deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_screen_layout()' );

	$current_screen = get_current_screen();

	if ( ! $current_screen )
		return '';

	ob_start();
	$current_screen->render_screen_layout();
	return ob_get_clean();
}

常見問題

FAQs
檢視更多 >