Want to change order of custom columns for edit panels? You need to rebuild the columns array, inserting your column before the column you want it to be left of:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /** * Change order of custom columns for edit panels. */ function thumbnail_column($columns) { $new = array(); foreach($columns as $key => $title) { // Put the Thumbnail column before the Author column if ($key=='author') $new['thumbnail'] = 'Thumbnail'; $new[$key] = $title; } return $new; } add_filter('manage_posts_columns', 'thumbnail_column'); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.