screen_options_show_screen WordPress Filter Hook

If you're looking to add a little extra control over your screen options in WordPress, the screen_options_show_screen hook is for you. This hook allows you to programmatically hide or show certain screen options on a per-user basis. Whether you're looking to give your power users a little extra control or wanting to declutter the interface for your less experienced users, this hook is a handy tool to have in your toolbox.

apply_filters( 'screen_options_show_screen', bool $show_screen, WP_Screen $screen ) #

Filters whether to show the Screen Options tab.


Parameters

$show_screen

(bool)Whether to show Screen Options tab. Default true.

$screen

(WP_Screen)Current WP_Screen instance.


Top ↑

Source

File: wp-admin/includes/class-wp-screen.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.