hidden_columns WordPress Filter Hook

The hidden_columns hook is a great way to hide certain columns from your Wordpress site. This can be useful if you want to keep certain information private, or if you simply don't want certain columns to be displayed.

apply_filters( 'hidden_columns', string[] $hidden, WP_Screen $screen, bool $use_defaults ) #

Filters the list of hidden columns.


Parameters

$hidden

(string[])Array of IDs of hidden columns.

$screen

(WP_Screen)WP_Screen object of the current screen.

$use_defaults

(bool)Whether to show the default columns.


Top ↑

Source

File: wp-admin/includes/screen.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.1Added the use_defaults parameter.
4.4.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.