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意味著它將不被顯示。螢幕選項”標籤允許使用者通過選擇顯示或隱藏哪些小工具、元框和其他元素來定製螢幕的佈局和顯示。

過濾是否顯示螢幕選項標籤。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );
$this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );
$this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );

常見問題

FAQs
檢視更多 >