screen_options

Returns the screen's per-page options.

Description

screen_options( $screen ); 

Parameters (1)

0. $screen
The screen.

Usage

  1. if ( !function_exists( 'screen_options' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The screen. 
  5. $screen = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = screen_options($screen); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function screen_options( $screen ) { 
  2. _deprecated_function( __FUNCTION__, '3.3.0', '$current_screen->render_per_page_options()' ); 
  3.  
  4. $current_screen = get_current_screen(); 
  5.  
  6. if ( ! $current_screen ) 
  7. return ''; 
  8.  
  9. ob_start(); 
  10. $current_screen->render_per_page_options(); 
  11. return ob_get_clean();