Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to modify the display of the edit-comments.php admin page and I'm not seeing any filters in it comparable to manage_posts_columns etc.

Is there an easy way to do this? I'm thinking the only real way to go about doing this is to extend WP_Comments_List_Table with my own class, overwrite the get_columns and other related functions, and just add my own page to the admin menu which uses this new class in the same way that edit-comments.php uses WP_Comments_List_Table.

Is there an easier way to do this that I'm just not seeing?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I'm afraid that there is no easy way to get that done yet because the only hook i found is manage_comments_custom_column and that is an action hook and not a filter hook so you can't add columns like manage_posts_columns. so as far as i can tell the long way here is the only way. but you can almost duplicate the default edit-comments.php and extending small classes like wp_post_comments_list_table and more.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.