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 comment