Filter hook 'default_hidden_columns'

in WP Core File wp-admin/includes/screen.php at line 71

View Source

default_hidden_columns

Filter Hook
Description
Filters the default list of hidden columns.

Hook Information

File Location wp-admin/includes/screen.php View on GitHub
Hook Type Filter
Line Number 71

Hook Parameters

Type Name Description
string[] $hidden Array of IDs of columns hidden by default.
WP_Screen $screen WP_Screen object of the current screen.

Usage Examples

Basic Usage
<?php
// Hook into default_hidden_columns
add_filter('default_hidden_columns', 'my_custom_filter', 10, 2);

function my_custom_filter($hidden, $screen) {
    // Your custom filtering logic here
    return $hidden;
}

Source Code Context

wp-admin/includes/screen.php:71 - How this hook is used in WordPress core
<?php
  66  		 * @since 4.4.0
  67  		 *
  68  		 * @param string[]  $hidden Array of IDs of columns hidden by default.
  69  		 * @param WP_Screen $screen WP_Screen object of the current screen.
  70  		 */
  71  		$hidden = apply_filters( 'default_hidden_columns', $hidden, $screen );
  72  	}
  73  
  74  	/**
  75  	 * Filters the list of hidden columns.
  76  	 *

PHP Documentation

<?php
/**
		 * Filters the default list of hidden columns.
		 *
		 * @since 4.4.0
		 *
		 * @param string[]  $hidden Array of IDs of columns hidden by default.
		 * @param WP_Screen $screen WP_Screen object of the current screen.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/screen.php
Related Hooks

Related hooks will be displayed here in future updates.