Created
April 29, 2016 22:09
-
-
Save feliciaceballos/e80fc00ddfce91d2f155da09e3b75e2d to your computer and use it in GitHub Desktop.
Add Notes Column
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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