WordPress at Your Fingertips
function is not described

screen_layout() WP 2.8.0

Deprecated from version 3.3.0 WP_Screen::render_screen_layout(). It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Returns the screen layout options.

No Hooks.

Return

null. Nothing.

Usage

screen_layout( $screen );
$screen (required)
-

Notes

Changelog

Since 2.8.0 Introduced.
Deprecated Since 3.3.0 WP_Screen::render_screen_layout()

Code of screen_layout() WP 5.8.2

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