Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feliciaceballos/e80fc00ddfce91d2f155da09e3b75e2d to your computer and use it in GitHub Desktop.
Save feliciaceballos/e80fc00ddfce91d2f155da09e3b75e2d to your computer and use it in GitHub Desktop.
Add Notes Column
function populate_custom_fields_in_post_list_view ($column_name, $id ) {
global $post;
$email = get_post_meta( $post->ID, 'automaton_client_email', true);
switch ($column_name) {
case 'notes':
echo show_most_recent_comment($post->ID);
break;
default:
break;
} // end switch
}
add_action( 'manage_posts_custom_column', 'populate_custom_fields_in_post_list_view', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment