hidden_columns
Filter HookDescription
Filters the list of hidden columns.Hook Information
File Location |
wp-admin/includes/screen.php
View on GitHub
|
Hook Type | Filter |
Line Number | 84 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$hidden
|
Array of IDs of hidden columns. |
WP_Screen
|
$screen
|
WP_Screen object of the current screen. |
bool
|
$use_defaults
|
Whether to show the default columns. |
Usage Examples
Basic Usage
<?php
// Hook into hidden_columns
add_filter('hidden_columns', 'my_custom_filter', 10, 3);
function my_custom_filter($hidden, $screen, $use_defaults) {
// Your custom filtering logic here
return $hidden;
}
Source Code Context
wp-admin/includes/screen.php:84
- How this hook is used in WordPress core
<?php
79 *
80 * @param string[] $hidden Array of IDs of hidden columns.
81 * @param WP_Screen $screen WP_Screen object of the current screen.
82 * @param bool $use_defaults Whether to show the default columns.
83 */
84 return apply_filters( 'hidden_columns', $hidden, $screen, $use_defaults );
85 }
86
87 /**
88 * Prints the meta box preferences for screen meta.
89 *
PHP Documentation
<?php
/**
* Filters the list of hidden columns.
*
* @since 4.4.0
* @since 4.4.1 Added the `use_defaults` parameter.
*
* @param string[] $hidden Array of IDs of hidden columns.
* @param WP_Screen $screen WP_Screen object of the current screen.
* @param bool $use_defaults Whether to show the default columns.
*/
Quick Info
- Hook Type: Filter
- Parameters: 3
- File: wp-admin/includes/screen.php
Related Hooks
Related hooks will be displayed here in future updates.