default_hidden_columns filter-hookWP 4.4.0

Filters the default list of hidden columns.

Usage

add_filter( 'default_hidden_columns', 'wp_kama_default_hidden_columns_filter', 10, 2 );

/**
 * Function for `default_hidden_columns` filter-hook.
 * 
 * @param string[]  $hidden Array of IDs of columns hidden by default.
 * @param WP_Screen $screen WP_Screen object of the current screen.
 *
 * @return string[]
 */
function wp_kama_default_hidden_columns_filter( $hidden, $screen ){

	// filter...
	return $hidden;
}
$hidden(string[])
Array of IDs of columns hidden by default.
$screen(WP_Screen)
WP_Screen object of the current screen.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

get_hidden_columns()
default_hidden_columns
wp-admin/includes/screen.php 71
$hidden = apply_filters( 'default_hidden_columns', $hidden, $screen );

Where the hook is used in WordPress

Usage not found.