You can use get_comments
function to retrive the comment count.Pass the user id of perticuler user as an argument.
$args = array(
'user_id' => 1, // use user id
'count' => true //return only the count
);
$comments = get_comments($args);
echo $comments
Please refer below link for more information.
http://codex.wordpress.org/Function_Reference/get_comments
Related Posts:
- Turn Off Auto Update for Single Plugin
- Is it bad practice to create own table for a plugin?
- Why is “plugins_loaded” not called/fired?
- Publish author posts only with editor approval?
- Any plugin out there that uses WP’s internal image uploader?
- Customizing subject in comment notification e-mails
- All shortcodes not working on custom theme
- Force Plugin to English Translation
- How to pass parameters (data) from plugin PHP to React
- Is it possible to have screenshots in any other section rather than the screenshots section?
- How to create an edit media button for slideshow plugin?
- Change Permalinks Structure to a Sequential Number for Each Post?
- Dynamic HTML not displaying at respective place
- Should I global $wpdb outside of any of my plugin’s functions scope?
- Display specific WooCommerce products to different types of users
- Short code for Venues
- merging an array to an existing array using add_filter
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Leveraging WordPress Comments on Custom Plugin Object page
- Woocommmerce show SKU in cart page
- Change wording of admin menu item?
- Redeclare theme’s function in a plugin
- Check if we’re viewing an event
- Show price with Geo IP location
- How to get 1 or 2 specific posts on top of my wordpress blog?
- How to find a run away wordpress plugin causing performance problems
- Form doesn’t submit on second submit call
- Getting value from dymanic text variable into Contact Form 7
- className not populating in custom block
- woocommerce payment gateway callback not firing [closed]
- How to export post 2 posts WordPress plugin data [closed]
- Trying to create a private area custom for each user where they upload images to a server [closed]
- Facebook Messager Plugin
- Customization API for plugin development
- automatic plugin install availability: server configuration
- Adding Font Awesome to WP Plugin
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- Display custom content using page.php from theme
- how to deactivate a plugin without using a WP function?
- I need help locating a URL that is on my site map, but that I can’t find in my WordPress dashboard
- Localize plugin name
- Cannot get wpdb data (Error in a simple fuction) [closed]
- Timber – Twig post.content returns null can’t create ACF Gutenberg blocks
- How to create multiple users at once?
- Notice: Uninitialized string offset: 0 in social sharing mu-plugin
- Add estimated value for a post according to the number of words
- Adding Static Image to WooCommerce Content-Single-Product template
- Remove timthumb.php from my custom theme
- Add type to enqueued script inside plugin
- Automatically download, install and activate plugins that my plugin depends, how?
- Error in pdf generating plugin using FPDF
- How to create WordPress custom end point with multiple parameters?
- Text change in Advanced Customs Fields [closed]
- Asynchronous request in wordpress
- Username Variable in custom links?
- How to use apply_filters?
- Displaying data from another database
- Every time I de-activate a custom plugin, the site encounters a critical error
- Cookies set by a plugin in wordpress for tracking
- Can export gallery but can’t import it Wp all import
- How Can i import plugin option?
- How to get authors who have added the post in the specific custom post type
- How to override any plugin file in the child theme
- How to remove Unused CSS From a WordPress Theme?
- There has been a critical error on this website
- Mobile Menu and Mobile Sidebar missing
- How to delete Crisp Chat plugin completely?
- How to generate random codes that have to be entered to access a Mailchimp form?
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- How do I stop plugins and themes from getting updated in a new plugin?
- How come W3TC is allowed to host premium code in the WordPress repo?
- After Update Advanced Gutenberg Plugin – advgb/container site does not support block
- Woocommerce functions in custom class, avoid errors
- Passing function into add_action always returns the first argument
- Remove dashboard links from wordpress
- Edit the stylesheet of a child theme
- Setting multiple videos for the video background
- saving checkboxes value in plugin admin
- Unable to to self-deactivate plugin using deactivate_plugins()
- plugin not hooking to my custom hook
- Remove Url Parameter WordPress
- Populate select option with JSON file
- Create post loop that displays pages by cat ID
- Enahanced search for edit.php and custom post type
- Modify a plugin’s content
- Proper way to trigger a MySQL query via link in a plugin
- Different plugins activated online and offline
- Find And Add Category to Posts
- featured image problem with custom post type
- Unable to show 4 products in a row
- 404 not found problem with URL rewrite custom category
- How to resolve these findings from security audit
- Activate or deactivate the sliders in slider revolution
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?
- manage_{taxonomy}_custom_column not working
- I want to set a different banner for each product in the woocommerce plugin on my wordpress site
- I want create woocommerec match products columns
- How to be Variables and options must be escaped when echo’d?
- Remove embed url for internal links