/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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 );
URL: http://wpcanyon.com/tipsandtricks/adding-id-field-to-the-media-library-listing-in-wordpress-admin/