add_screen_option

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

Register and configure an admin screen option

Parameters

  • 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;

}

8971

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:

WordPress.com Logo

You are commenting using your WordPress.com 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: