Add ID column for category listing

Adding ID field to the categories listing in wordpress admin panel. Adding this PHP code to the functions.php of your wordpress theme will add a new column that will display the category ID. Great tool that will stop the need to hover over a category to display the ID.




function categoriesColumnsHeader($columns) {
$columns['catID'] = __('ID');
return $columns;
add_filter( 'manage_categories_columns', 'categoriesColumnsHeader' );
function categoriesColumnsRow($argument, $columnName, $categoryID){
if($columnName == 'catID'){
return $categoryID;
add_filter( 'manage_categories_custom_column', 'categoriesColumnsRow', 10, 3 );

Leave a comment