Summery Summery
Register and configure an admin screen option
Syntax Syntax
Parameters Parameters
- $option
-
(Required) An option name.
- $args
-
(Optional) Option-dependent arguments.
Default value: array()
Source Source
File: wp-admin/includes/screen.php
function add_screen_option( $option, $args = array() ) { $current_screen = get_current_screen(); if ( ! $current_screen ) { return; } $current_screen->add_option( $option, $args ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |