manage_media_columns filter-hookWP 2.5.0

Filters the Media list table columns.

Usage

add_filter( 'manage_media_columns', 'wp_kama_manage_media_columns_filter', 10, 2 );

/**
 * Function for `manage_media_columns` filter-hook.
 * 
 * @param string[] $posts_columns An array of columns displayed in the Media list table.
 * @param bool     $detached      Whether the list table contains media not attached to any posts.
 *
 * @return string[]
 */
function wp_kama_manage_media_columns_filter( $posts_columns, $detached ){

	// filter...
	return $posts_columns;
}
$posts_columns(string[])
An array of columns displayed in the Media list table.
$detached(true|false)
Whether the list table contains media not attached to any posts.
Default: true

Changelog

Since 2.5.0 Introduced.

Where the hook is called

WP_Media_List_Table::get_columns()
manage_media_columns
wp-admin/includes/class-wp-media-list-table.php 392
return apply_filters( 'manage_media_columns', $posts_columns, $this->detached );

Where the hook is used in WordPress

Usage not found.