wpseek.com
A WordPress-centric search engine for devs and theme authors



add_screen_option › WordPress Function

Since3.1.0
Deprecatedn/a
add_screen_option ( $option, $args = array() )
Parameters: (2)
  • (string) $option An option name.
    Required: Yes
  • (mixed) $args Option-dependent arguments.
    Required: No
    Default: array()
Defined at:
Codex:

Register and configure an admin screen option



Source

function add_screen_option( $option, $args = array() ) {
	$current_screen = get_current_screen();

	if ( ! $current_screen ) {
		return;
	}

	$current_screen->add_option( $option, $args );
}