Return to Snippet

Revision: 36069
at November 17, 2010 14:34 by wpCanyon


Initial Code
function mediaColumnsHeader($columns) {
	$columns['medID'] = __('ID');
	return $columns;
}

add_filter( 'manage_media_columns', 'mediaColumnsHeader' );

function mediaColumnsRow($columnName, $columnID){
	if($columnName == 'medID'){
		echo $columnID;
	}
}

add_filter( 'manage_media_custom_column', 'mediaColumnsRow', 10, 2 );

Initial URL
http://wpcanyon.com/tipsandtricks/adding-id-field-to-the-media-library-listing-in-wordpress-admin/

Initial Description

                                

Initial Title
Adding ID Field To The Media Library Listing In WordPress Admin

Initial Tags
wordpress

Initial Language
PHP