You can use two filters for that:
- manage_edit-comments_columns – to add a column header on comments table
- manage_comments_custom_column – to add the content of each row for that column
So you would have something like this:
function myplugin_comment_columns( $columns )
{
$columns['my_custom_column'] = __( 'My Category' );
return $columns;
}
add_filter( 'manage_edit-comments_columns', 'myplugin_comment_columns' );
function myplugin_comment_column( $column, $comment_ID )
{
if ( 'my_custom_column' == $column ) {
echo '<a href="' . admin_url('/my-action.php?id=' . $comment_ID) . '">My button</a>';
}
}
add_filter( 'manage_comments_custom_column', 'myplugin_comment_column', 10, 2 );
Related Posts:
- Is it possible to pull comments from facebook into your blog?
- Enable Submit Comment Without Page Reload (Using Ajax)?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- How to deal with small scale comment spam on small commercial sites? [closed]
- How to use a custom comments template
- Comment visibility
- human_time_diff() returns “48 years ago” for all comments
- Allowing more elements in comments via functions.php
- Set post comments open function
- “Categories” for comments?
- Comments Reply Form
- Allow guests comments on single post
- Delayed commenting
- An action hook where a comment meta is updated
- Display number of comment replies
- User can post only one comment per day on one page
- Last comment page first with full number of comments?
- Only subscriber role user can comment not other
- customize comment form
- Strategies for coping with hyperagressive spambots?
- Relaxing unescaped HTML filtering inside tags?
- How to save new comment as custom comment type?
- How to remove the “on” string before recent comments link?
- WordPress comments email notification for authors
- How to get the result of comments_number() as a string instead of printing it out?
- Should I still worry about paginated comments with the latest wordpress versions?
- How to dont allow registered users to comment without being logged in?
- How can I edit the Twenty Ten Theme to remove the comments box when a page uses a specific template?
- Highlight Author Comments issues
- Why is_wp_error() is not returning false even there’s no defined error
- wp_insert_comment and security
- How can someone submit a comment when my site has no comment field?
- Show comments in a popup
- Author can only see own post comment and can moderate
- highlight “starred” comments by admin
- How to display html in only the first level of WP comments?
- How can I convert anonymous commenters into registered users?
- your comment awaiting moderation message sometimes not appearing
- Limit comments per user per post
- How can I hide the IP of registered commentators?
- How to configure WordPress + plugins to support these commenting features
- Comments vs. Pingbacks next page issue
- WordPress ‘comment counts’ got messed up, because of a plugin – DISQUS
- blank page after submitting a comment
- Remove post navigation links
- Comments invisible after moving WordPress to new server, while commenting still works
- Display only 1 comment and then option to show more
- Notify post author for a new comment on his post?
- Allow the comment author to delete their own comments
- cancel reply link results in 404 error
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- Prioritizing the wordpress comments
- Which filter/hook to use for styling comments?
- How should I get the original comment while processing the reply
- Comments from vbulletin topic [closed]
- wp.getComments is returning nill, when i called from my iphone app [closed]
- How to override wp_insert_comment()
- I wish to remove, disable or hide the comment authors’ links to their sites from my home page
- How to stop ultimate members to redirect comment authors to user profile?
- How can I get list of emails of users who commented on a post?
- How modify the comment content persistently based on $wp_query?
- Displaying Posts Depending on Number of Comments and Latest Comments?
- How do I stop the comments going to my email?
- How to implement just the wp commenting area on my custom site?
- anyone can help me to know whats going wrong? [closed]
- How to customize the title from comments form?
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- Comments and post dates not showing up correctly on “posts page”
- get_comment_meta not behaving as expected
- comments_popup_link() – how to load different classes/images according to different comment condition?
- get_comment_author_link not working properly
- Comments numbering on multiple pages
- How do I get a array, with the right order of the nested comments?
- Problem with comment box
- Display last comments on home page
- Clicking Comment “Reply” Button only replies to first comment
- Is there a way to only allow certain user ranks to comment on a post
- comment form code redirect to wp_comments_post.php with blank page
- Parent comment’s author display_name
- How to show a list of comments on home page from all posts?
- WordPress Custom Local Avatar not showing in comments
- Create another comment section for WordPress
- How to get the current post ID in comments.php?
- Remove text on Comment count
- wp list all users who haven’t commented on a post
- Creating a “walled garden” of comments
- How can I enable commenting from mobile view?
- Displaying comment rating stars in carousel
- Enable comments option
- Change Comment Text [duplicate]
- How to force users to nest their comments
- WordPress Comments jQuery Doesn’t submit
- Insert comment and still use moderation
- Auto approve all comments (editor)
- add field comment [duplicate]
- Let users comment on categories in WordPress
- Customize comment notification e-mails with HTML
- comment awaiting moderation
- How do you fetch the authors email or IP from /comments? (REST API)
- How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments