Title: screen_layout
Published: April 25, 2014
Last modified: April 28, 2025

---

# screen_layout( $screen )

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#see-also)
 * [Source](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#wp--skip-link--target)

This function has been deprecated since 3.3.0. Use [WP_Screen::render_screen_layout()](https://developer.wordpress.org/reference/classes/WP_Screen/render_screen_layout/)
instead.

Returns the screen layout options.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#see-also)󠁿

 * [WP_Screen::render_screen_layout()](https://developer.wordpress.org/reference/classes/WP_Screen/render_screen_layout/)

## 󠀁[Source](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/deprecated.php#L824)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/deprecated.php#L824-L835)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#related)󠁿

| Uses | Description | 
| [get_current_screen()](https://developer.wordpress.org/reference/functions/get_current_screen/)`wp-admin/includes/screen.php` |

Get the current screen object

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/screen_layout/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.3.0](https://developer.wordpress.org/reference/since/3.3.0/) | Deprecated. [WP_Screen::render_screen_layout()](https://developer.wordpress.org/reference/classes/wp_screen/render_screen_layout/) | 
| [2.8.0](https://developer.wordpress.org/reference/since/2.8.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fscreen_layout%2F)
before being able to contribute a note or feedback.