Got some idea from here.
User’s comments have posted
<?php
function commentCount() {
global $wpdb;
$count = $wpdb->get_var('SELECT COUNT(comment_ID) FROM ' . $wpdb-comments. ' WHERE comment_author_email = "' . get_comment_author_email() . '"');
echo $count . ' comments';
}
commentCount();
?>
I don’t have any idea for comments that user got from their posts. Might be use custom $wpdb
query too, where post_id is array of their post id.
Related Posts:
- Commenter should see only his comments in wordpress
- wp-comment author- url +, email filter hook
- Use author author display name in permalink structure for pages and posts
- Possible to search by author name with default WordPress search function?
- Remove Comments Metabox but still allow comments
- Add admin bar link to edit author
- How can I remove the title “leave a reply” in the comment box in twentyeleven?
- change the comment time output to: X time ago instead of actual date and time
- How to get comments with mixed status using get_comments?
- How to prevent deleting of comments when deleting a post
- disable comments if array exists
- Authors details such as social media links, emails etc → Is this Meta or something else?
- Remove “says” from comments
- Comments to only be seen by their author
- How to Add a Random Custom Gravatar in the WordPress Comments?
- Hide Author.php template from specific user role
- How to automatically remove links from WordPress Biographical Info?
- Show top commenters without using a plugin
- Change the HTML of the comment form that is generating somewhere from the core WordPress
- Allow Post Author to be 0 on Update
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- check if author has published posts in custom post type, then send mail
- Where to add the permalink in this function?
- Incorrect redirect after commenting
- comments_popup_link without echo?
- Getting comment count per post not working
- Wp admin – Set default value to 999 in comments
- What is the Difference in bones_comments() and comments.php
- Author Date Function not working as expected [duplicate]
- Disabling Author Page only for subscribers
- Function to replace comment’s accented characters before posting
- If no author posts, echo out some text
- WordPress comment_form() does not display actual comments
- WordPress comment processing . Default unapproved comments detection before posting
- how to show comments only author which send own posts in wordpress
- How do I change where “You must be logged in to comment” directs users?
- Show all people who commented on all posts by an author
- How do I make the comment disappear after deleting from the database?
- Get post_author email for Zapier Integration
- Remove nofollow from internal comment links via functions.php
- Author social media aren’t shown on the page
- How can I automatically delete comments that contain a URL?
- Warning and fatal error
- How To Display Author Popup on Entry Meta (Genesis Framework)?
- Comment function for page
- How to identify author in wordpress comments?
- Author Page User id in functions.php for non login user
- How can I return the result of my custom function?
- Newest comments first not working
- get_comments not working properly after WordPress v4.4 update
- Author info does not show up when author has no posts
- Getting error while trying to use custom comment function
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Show the online status of the current post’s author
- Custom Nested WordPress Comments with avatar
- Undo a function that is not (seemingly) hooked to an action?
- Comment Function
- WP Custom Comment Callback Not Responding
- How to remove “login to reply” from individual comments [duplicate]
- How to Insert A List of Posts in A Category Written by the Author into the Author Archive
- Getting full code of wp_list_comments instead of replacing it
- Comment turned Invisible
- User’s Comments Number: Storing it in a meta field for different uses
- Add functionality to block comment authors in the Comment edit pag
- How to add user_registered time in human_time_diff() wordpress
- Programatically add options to “add new” custom field dropdown
- Use ‘add_theme_support’ instead of ‘add_custom_image_header’ In WordPress 3.4
- Replacing select2 in admin backend for all selects
- Functions.php: If its single?
- Remove Menu Page Giving Error
- modify a function filter
- Accepted arguments value in hook functions
- Best practices for multiple Custom Feeds functions
- Print Post Parent Title
- Shortcode pagination not advancing
- custom rss templete
- WordPress on AWS Auto scaling and ELB giving 503
- is_author(get_current_user_id()) returns false when author id and user id match
- unnecessary request call for js and css after calling wp_dequeue_script
- Functions Error: Impacting Galleries
- How to use author meta in shortcode?
- How to cut off question mark in url with functions.php
- How to rewrite wordpress search to work on specific category
- Theme JS is available but theme CSS isn’t
- Genesis Framework: How to exclude a specific author from archive custom loop
- How to Add Shortcode to html img code?
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Conditional custom menu?
- What function actually renders the wp_admin_bar ? How can I call it?
- redirecting a URL if accessed directly
- Detect Ajax call inside pre_get_posts function
- What is wp_get_post_tags for media tags?
- How do I trigger WP CLI DB export using a PHP function?
- WordPress does not load jQuery
- How to prevent users/authors from seing IP/email of new commentators?
- Redirect specific author posts to another url
- How to use if (is_page_template (”))
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- update_post_meta after form is submited