function add_screen_option( $option, $args = array() {}

Register and configure an admin screen option


  • string $option: An option name.
  • mixed $args: Option dependent arguments

Source code

function add_screen_option( $option, $args = array() ) {

	global $wp_current_screen_options;

	if ( !isset($wp_current_screen_options) )

		$wp_current_screen_options = array();

	$wp_current_screen_options[$option] = $args;



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: