add_screen_option

函数
add_screen_option ( $option, $args = array() )
参数
  • (string) $option An option name.
    Required:
  • (mixed) $args Option-dependent arguments.
    Required:
    Default: array()
定义位置
相关方法
screen_optionsadd_site_optionset_screen_optionsadd_optionscreen_icon
引入
3.1.0
弃用
-

add_screen_option: 这个函数用来在WordPress管理屏幕上添加一个新的屏幕选项。屏幕选项允许你自定义WordPress管理屏幕上各种元素的显示。你可以使用这个函数在屏幕选项菜单中添加新的选项。

注册和配置一个管理屏幕选项。

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

	if ( ! $current_screen ) {
		return;
	}

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 15:32:55

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: