Warning: This function has been deprecated. Use WP_Screen::render_screen_layout() instead.

screen_layout() WordPress Function

The screen_layout() function is used to manage the display of content on the front-end of a WordPress site. It is responsible for rendering the content area on the screen, and for managing the display of sidebars and other content areas. The function can be used to display content in a variety of ways, including: - displaying the content in a single column - displaying the content in multiple columns - displaying the content in a sidebar - displaying the content in a footer - displaying the content in a header

screen_layout( $screen ) #

Returns the screen layout options.


Description

Top ↑

See also


Top ↑

Source

File: wp-admin/includes/deprecated.php

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();
}


Top ↑

Changelog

Changelog
VersionDescription
3.3.0WP_Screen::render_screen_layout()
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More