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
查看更多 >