screen_options()
Deprecated from version 3.3.0. It is no longer supported and can be removed in future releases. Use WP_Screen::render_per_page_options() instead.
Returns the screen's per-page options.
No Hooks.
Return
null
. Nothing (null).
Usage
screen_options( $screen );
- $screen (required)
- -
Notes
Changelog
Since 2.8.0 | Introduced. |
Deprecated since 3.3.0 | Use WP_Screen::render_per_page_options() |
screen_options() screen options code WP 6.6.2
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(); }