screen_options_show_screen

过滤钩子
apply_filters( 'screen_options_show_screen', $show_screen, $this )
参数
  • (bool) $show_screen Whether to show Screen Options tab. Default true.
    Required:
  • (WP_Screen) $screen Current WP_Screen instance.
    Required:
定义位置
相关勾子
screen_options_show_submitset_screen_option_optioncurrent_screenfeed_links_show_posts_feedset-screen-option
相关方法
screen_optionsset_screen_optionsadd_screen_optionsend_frame_options_headerset_current_screenrest_handle_options_request
引入
3.2.0
弃用
-

screen_options_show_screen: 这个函数用来决定”屏幕选项”标签是否应该显示在WordPress的屏幕上: 该函数接受一个布尔值作为参数,其中true意味着该标签将被显示,false意味着它将不被显示。屏幕选项”标签允许用户通过选择显示或隐藏哪些小工具、元框和其他元素来定制屏幕的布局和显示。

过滤是否显示屏幕选项标签。

$this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );

常见问题

FAQs
查看更多 >