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 (null).

Usage

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

Notes

Changelog

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

screen_layout() code WP 6.6.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();
}