On this page
screen_options( $screen )
This function has been deprecated. Use WP_Screen::render_per_page_options() instead.
Returns the screen’s per-page options.
Description
See also
Source
File: wp-admin/includes/deprecated.php. View all references
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();
}
Related
Uses
| Uses | Description |
|---|---|
| get_current_screen() wp-admin/includes/screen.php | Get the current screen object |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.3.0 | Use WP_Screen::render_per_page_options() |
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/screen_options