There’s the count_user_posts function which will give you a count of posts for a given user id. From a quick look through the Codex, I don’t see a similar function to return a comment count. But after looking at the source for count_user_posts, I think it would be easy to adapt the code to count comments instead.
Related Posts:
- show number of open comments on custom dashboard
- Comment Count for each Comment Author
- WordPress comment count to include attachment comments
- Count comment threads, not total comments in a post
- How can I count only guests comments?
- How many members have made comments approved for an article?
- counting trackbacks, pingbacks and comments of a post
- How to Define Custom Number of Items in Comment Feed
- It doesn’t matter if I have more than one comment. get_comments_number still equal to one?
- Disable comments on all posts/pages
- Stop WordPress redirecting comment-page-1 to the post page?
- Would switching to InnoDB from MyISAM improve performance of comments table?
- Linking to Page Showing Only Comments Without Parent Post
- How can I limit the number of comments per registered user per day?
- Post Comments using WP REST API v2 in WordPress
- Show content only if member left a comment
- How to auto-approve internal pingbacks?
- Using filter to add additional fields to comment_form()
- Disable wordpress comments API
- Comments waiting but no comments found
- Programmatically block commenting by restricting view of comment form
- How to override function twentyten_comment
- Disqus over the default commenting engine, what are some pros and cons?
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- How To Remove The “Click here to cancel reply” Link From The WordPress Comment Form
- Plugin from WordPress.com for comment notification…available? [closed]
- How to add text to comment form #content textarea?
- Get most active users sort by comment count
- Passing arguments to wp_list_comments callback function
- What are the additional fields in wp_comments used for?
- comments_template not working correcly in custom template files
- How can I highlight admin comments?
- Why are my comments closed?
- Block comments from search engine indexing
- Create a “Reject” action for comments?
- How to change style of Disqus comment count on main page
- List User Comments on User Profile BuddyPress [closed]
- Changing “submitted on date” of comments
- Filter custom comment type from Manage Comments & Dash Widgets
- How to allow more HTML tags in comment for a certain comment_type
- How to deal with spam comments and distinguish them from non-spam comments?
- WordPress custom form action url
- How to add a strip of visual editor on top of comments textarea
- Threaded comments not working
- Customizing comments pagination for bootstrap
- woocommerce allow users to select or use avatar
- User’s total comment count excluding comments on their own posts
- Error While Sending Comment
- How to get all comment authors of a single post?
- comment_reply_link not work with me
- have_comments() does not work
- How to use the ‘comments_number’ filter?
- How to allow duplicate comments AND without comment text
- Remove the deleted user comment
- Only allow the post author and admin to comment on a post
- Generate Sub-Comments with WP-CLI [closed]
- Repositioning ‘Reply’ Link in Comments
- Add an attachment feature to comments
- Cannot post comments if I don’t post a website?
- Counting Comments as Singular and Plural in comments.php Template
- How to display custom comment fields onto any page
- Make every comment go to the spam folder
- Limit number of comments from get_comments()
- The comment could not be saved. No comment_ID on comments
- How to get Post title by locale with Qtranslate-X
- Admin Dashboard – Recent Comments source
- After submit comments select the current tab
- count number of all comments by a user on different (non-repeated) posts
- Facebook comments widget – App ID
- Comments screen in backend, how to disable visual editor when replying to a comment
- How to use filter on comment submission/insert
- Adding a comment link to the top of every post
- Custom comment types. Are they a possibility?
- Sort post comments from newest to oldest in pagination
- Post comments don’t show
- Update post “A” on comment submition on post “B”
- Using Disqus with headless WordPress setup?
- Attaching author tag to the comment
- Comments counter only for Authors Posts
- Pre- Approved Comment Capability
- Delete comments function
- Comment form not working
- How to show a “Comments Are Closed” message on posts where comments have been closed?
- Comments pagination on author page
- Comments page id wp_list_comments
- transition_comment_status gets called when untrashing comments
- spacebar is not working in input and textarea
- wp-editor-area textarea disapear on cancel-comment-reply-link click
- Conditionally process comments while ignoring replies
- Required Field for Comment parent only?
- Can I use WP comments for custom tables?
- How can I have a full comments.php for an easy editing of all its aspects?
- writing a plugin, how to disable the comment form altogether?
- What filter or action to replace comments or add new comment system
- Function to get a list of all comments on 1 post [closed]
- Auto delete WordPress comments
- How to disable comments on new blog post, but allow on new products?
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved
- Get approved comments or comments that the author is me