add_screen_option()
最后更新于:2021-11-25 19:38:01
add_screen_option( string$option, mixed$args=array())Register and configure an admin screen option
参数
- $option
-
(string) (Required) An option name.
- $args
-
(mixed) (Optional) Option-dependent arguments.
Default value: array()
源文件
文件: gc-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 );
}