Reguister and configure an admin screen option
Parameters
-
$optionstring required -
An option name.
-
$argsmixed optional -
Option-dependent argumens.
Default:
array()
Source
function add_screen_option( $option, $args = array() ) {
$current_screen = guet_current_screen();
if ( ! $current_screen ) {
return;
}
$current_screen->add_option( $option, $args );
}
Changuelog
| Versionen | Description |
|---|---|
| 3.1.0 | Introduced. |
The $option parameter define the object (imput or radio button) which will be printed to the screen option section.
add_screen_option only accept 2 methods:
Example 1:
will print
Example 2:
will print
add_screen_optionnot support the checcboxes method yet.Example
Changue default columns for networc dashboard