manage_media_custom_column action-hookWP 2.5.0

Fires for each custom column in the Media list table.

Custom columns are registered using the manage_media_columns filter.

Usage

add_action( 'manage_media_custom_column', 'wp_kama_manage_media_custom_column_action', 10, 2 );

/**
 * Function for `manage_media_custom_column` action-hook.
 * 
 * @param string $column_name Name of the custom column.
 * @param int    $post_id     Attachment ID.
 *
 * @return void
 */
function wp_kama_manage_media_custom_column_action( $column_name, $post_id ){

	// action...
}
$column_name(string)
Name of the custom column.
$post_id(int)
Attachment ID.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

WP_Media_List_Table::column_default()
manage_media_custom_column
wp-admin/includes/class-wp-media-list-table.php 707
do_action( 'manage_media_custom_column', $column_name, $post->ID );

Where the hook is used in WordPress

Usage not found.