wpseek.com
WordPress开发者和主题制作者的搜索引擎



add_screen_option › WordPress Function

Since3.1.0
已弃用n/a
add_screen_option ( $option, $args = array() )
参数: (2)
  • (string) $option An option name.
    Required: Yes
  • (mixed) $args Option-dependent arguments.
    Required: No
    默认: array()
定义在:
文档:

Register and configure an admin screen option



源码

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

	if ( ! $current_screen ) {
		return;
	}

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