- Author:Scott Reilly
- First released:2009-06-15
- Last update:2015-02-17
- Compatibility:WP 3.9 – 4.1.5
- Download:[ zip ]
Displays a count of each commenter's total number of comments (linked to those comments) next to their name on any admin page.
Next to all appearances of each commenter’s name in the admin, this plugin shows a count of their total number of comments, linked to a listing of those comments.
By default in WordPress, it is not possible to tell via a single glance whether a particular commenter has commented before, and if so, how many times.
This plugin adds a handy feature to the WordPress admin pages to allow you to:
- Quickly identify a first-time commenter
- Quickly identify unfamiliar commenters that have in fact commented before
- Quickly see how many total comments a particular commenter has made, and how many comments are pending
- Easily go to a listing of all comments by a commenter, in order to see what and when they last commented, or what/when they first commented
This plugin adds a linked comment count next to every appearance of a commenter in the admin. The link takes you to the admin page listing all comments for that particular commenter. The count displays all approved comments attributed to that commenter. If you hover over the comment count, the hover text indicates how many pending comments they also have, if any.
Specifically, the linked comment count appears next to commenters in:
- The “Comments” listing of comments (including comment search results)
- The “Comments for ‘POST_TITLE'” listing of post-specific comments
- The “Discussion” box of the “Edit Post” page for a post with comments
- The “Recent Comments” admin dashboard widget
- The “Users” listing of users (as the column “Comments”)
Commenters are identified by the email address they provided when commenting. If your site does not require that commenters submit their email address when commenting, this plugin will use the commenter’s name as the identifier, though since this is a publicly viewable piece of data it’s possible that multiple people could be posting under the same “name”, so this method has the potential to be not as accurate.
Find out more at the plugin’s WordPress Plugin Repository page.
Click to see full-size image.
A screenshot of the ‘Comments’ admin page with the comment count appearing next to the commenter’s name. The most recent comment is from someone who has not commented on the site before. The second comment is from someone who has commented 13 times before. The hover text on the comment bubble reveals there are currently 13 approved comments and 3 pending comments for the visitor.
A screenshot of the ‘Comments on POST TITLE’ admin page with the comment count appearing next to the commenter’s name.
A screenshot of the ‘Activity’ admin dashboard widget with the comment count appearing next to the commenter’s name.
A screenshot of the ‘Comments’ metabox on the ‘Edit Post’ admin page with the comment count appearing next to the commenter’s name.
A screenshot of the ‘Comments’ column added to the admin user listing with the linked count of each user’s comments.
/wp-content/plugins/directory for your site (or install via the built-in WordPress plugin installer)
- Activate the plugin through the ‘Plugins’ admin menu in WordPress
Frequently Asked Questions
Q. Why would I want to see a count of how many comments someone made?
A. There are many reasons, some of which might include:
- Quickly identifying a first-time commenter
- Quickly identifying unfamiliar commenters that have in fact commented before
- Quickly seeing how many total comments a particular commenter has made, and how many comments are pending
- Easily going to a listing of all comments by a commenter, in order to see what and when they last commented, or what/when they first commented
Q. How does the plugin know about all of the comments someone made to the site?
A. Commenters are identified by the email address they provided when making a comment. If commenters are allowed to omit providing an email address, then their name is used to identify them (though this is potentially less accurate).
Q. Why does it report someone as having less comments than I know they’ve actually made?
A. Since commenters are identified by the email address they provided when making a comment, if they supply an alternative email address for a comment, the plugin treats that email address as a separate person.
Q. How do I hide (or show) the “Comments” column in the listing of the admin Users page?
A. Click the “Screen Options” link in the upper-right of the page. It will slide down a form. Click (or unclick) the checkbox for “Comments” to show (or hide) the column.
Q. Does this plugin include unit tests?
- Always load class rather than just in the admin
- Add to, and improve, unit tests
- Add screenshot showing ‘Comments’ column in user listing
- Curly-braced variables used in strings
- Note compatibility through WP 4.1+
- Update copyright date (2015)
- Add ‘Comments’ column to admin user listing with linked count of that user’s comments
- Modify markup output to accommodate changes made in WP 3.9
- Abstract comment count logic into get_comments_count()
- Abstract admin comments URL link into get_comments_url()
- Remove commented out styles
- Minor plugin header reformatting
- Add more unit tests
- Minor code reformatting (spacing, bracing)
- Change documentation links to wp.org to be https
- Note compatibility through WP 4.0+
- Drop compatibility with version of WP older than 3.9
- Change banner image
- Add plugin icon
- Enqueue custom CSS file instead of adding CSS to page head
- Change CSS to allow comment bubbles to take on colors of active admin theme
- Change initialization to fire on ‘plugins_loaded’
- Add unit tests
- Minor documentation tweaks
- Note compatibility through WP 3.8+
- Drop compatibility with version of WP older than 3.8
- Update copyright date (2014)
- Change donate link
- Update screenshots for WP 3.8 admin refresh
- Update banner for WP 3.8 admin refresh
- Add check to prevent execution of code if file is directly accessed
- Note compatibility through WP 3.5+
- Update copyright date (2013)
- Move screenshots into repo’s assets directory
- Add CSS rule to set text color to white to supersede CSS styling done by latest Akismet
- Default to gray comment bubble
- Show blue comment bubble for authors with pending comment (consistent with how WP does it for posts)
- Add ‘author-com-pending’ class to link when author has pending comments
- Show orange comment bubble on hover over comment bubble
- Re-license as GPLv2 or later (from X11)
- Add ‘License’ and ‘License URI’ header tags to readme.txt and plugin file
- Add banner image for plugin page
- Remove ending PHP close tag
- Note compatibility through WP 3.4+
- Bugfix for notices when non-standard comment types are present (by explicitly supporting pingbacks and trackbacks, and ignoring non-standard comment types)
- CSS tweak to prevent top of comment bubble from being clipped
- Prefix class name with ‘c2c_’
- Add version() to return plugin version
- Note compatibility through WP 3.3+
- Fix typo in readme.txt
- Update screenshot-3
- Add link to plugin directory page to readme.txt
- Update copyright date (2012)
- Properly encode emails in links to commenter’s comments listing (fixes bug where a ‘+’ in email prevented being able to see their listing)
- Invoke class function internally via self instead of using actual classname
- Note compatibility through WP 3.2+
- Minor code formatting changes (spacing)
- Fix plugin homepage and author links in description in readme.txt
- Explicitly declare all class functions public static
- Minor code reformatting (spacing) and doc tweaks
- Note compatibility with WP 3.1+
- Update copyright date (2011)
- Bug fix (missing argument for sprintf() replacement)
- If a commenter does not have an email provided, search for other comments based on the provided name
- Treat class as a namespace rather than instantiating it as an object
- Check for is_admin() before defining class rather than during constructor
- Proper conditional string pluralization and localization support
- Use esc_attr() instead of attribute_escape()
- Fix dashboard display of commenter comment counts (prevent clipping of top of bubble, bubble background is now blue instead of gray)
- No longer define background-position in CSS
- Remove docs from top of plugin file (all that and more are in readme.txt)
- Minor code reformatting (spacing)
- Add package info to top of plugin file
- Remove trailing whitespace in docs
- Add Upgrade Notice section to readme.txt
- Note compatibility with WP 3.0+
- Drop compatibility with version of WP older than 2.8
- Add PHPDoc documentation
- Note compatibility with WP 2.9+
- Update copyright date and readme.txt
- Initial release
Copyright & DisclaimerCopyright © 2009-2015 by Scott Reilly (aka coffee2code)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Discussion / Support
Have any questions, comments, or suggestions? Please provide them via the plugin’s WordPress.org support forum. I’ll do my best to reply in a timely fashion and help as best I can.
Unfortunately, I cannot provide guaranteed support, nor do I provide support via any other means.
Was this plugin useful useful to you? Consider giving it a rating. If you’re inclined to give it a poor rating, please first post to the support forum to give me a chance to address or explain the situation.