screen_options_show_screen
Filters whether to show the Screen Options tab.
Usage
add_filter( 'screen_options_show_screen', 'wp_kama_screen_options_show_filter', 10, 2 ); /** * Function for `screen_options_show_screen` filter-hook. * * @param bool $show_screen Whether to show Screen Options tab. * @param WP_Screen $screen Current WP_Screen instance. * * @return bool */ function wp_kama_screen_options_show_filter( $show_screen, $screen ){ // filter... return $show_screen; }
- $show_screen(true|false)
- Whether to show Screen Options tab.
Default: true - $screen(WP_Screen)
- Current WP_Screen instance.
Changelog
Since 3.2.0 | Introduced. |
Where the hook is called
screen_options_show_screen
wp-admin/includes/class-wp-screen.php 1034
$this->_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );
Where the hook is used in WordPress
wp-admin/edit-form-blocks.php 47
add_filter( 'screen_options_show_screen', '__return_false' );
wp-admin/nav-menus.php 524
add_filter( 'screen_options_show_screen', '__return_false' );