How do I add a new custom column to wordpress wp-admin/edit-comments.php page ? I tried this but did not work.

add_filter( 'manage_comments_custom_column',  'add_new_columns' );
function add_new_columns($columns){
    $column_meta = array( 'reported' => 'Reported' );
    $columns = array_slice( $columns, 0, 4, true ) + $column_meta + array_slice( $columns, 6, NULL, true ); 
    return $columns;
}

1 Answer
1

The filter you’re looking for is manage_edit-comments_columns. Here is a post detailing how to add custom columns to the edit comments section of the admin http://stv.whtly.com/2011/07/27/adding-custom-columns-to-the-wordpress-comments-admin-page/

Leave a Reply

Your email address will not be published. Required fields are marked *