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

screen_options() WordPress Function

The screen_options() function is used to set up the options for a particular screen. This function is typically called in the admin_head action. The function takes two arguments: the screen ID and an array of options.

screen_options( $screen ) #

Returns the screen’s per-page options.


Description

Top ↑

See also


Top ↑

Source

File: wp-admin/includes/deprecated.php

function screen_options( $screen ) {
	_deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' );

	$current_screen = get_current_screen();

	if ( ! $current_screen )
		return '';

	ob_start();
	$current_screen->render_per_page_options();
	return ob_get_clean();
}


Top ↑

Changelog

Changelog
VersionDescription
3.3.0Use WP_Screen::render_per_page_options()
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