screen_options_show_submit
云策文档标注
概述
screen_options_show_submit 是一个 WordPress 过滤器,用于控制是否显示屏幕选项的提交按钮。它允许开发者根据当前 WP_Screen 实例动态调整按钮的可见性。
关键要点
- 这是一个过滤器,用于修改屏幕选项提交按钮的显示状态。
- 接受两个参数:$show_button(布尔值,默认 false)和 $screen(WP_Screen 实例)。
- 在 WP_Screen::render_screen_options() 方法中调用,用于渲染屏幕选项标签。
- 自 WordPress 4.4.0 版本引入。
原文内容
Filters whether to show the Screen Options submit button.
Parameters
Source
$show_button = apply_filters( 'screen_options_show_submit', false, $this );
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |