Skip to content

Instantly share code, notes, and snippets.

@PeteMall
Created April 12, 2011 01:40
Show Gist options
  • Save PeteMall/914762 to your computer and use it in GitHub Desktop.
Save PeteMall/914762 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'manage_post_posts_columns', 'pm_add_col' );
function pm_add_col( $cols ) {
$cols['post_id'] = 'ID';
return $cols;
}
add_filter( 'manage_posts_custom_column', 'pm_display_col', 10, 2 );
function pm_display_col( $col, $post_id ) {
if ( 'post_id' == $col )
echo $post_id;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment