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
See also
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(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.3.0 | Use WP_Screen::render_per_page_options() |
2.8.0 | Introduced. |