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:
- Given the ID of a product in woocommerce, how can I get its URL?
- How to delete all records from or empty a custom database table?
- Add Plugins to WordPress Theme
- Change the path where wordpress plugins are uploaded
- Jigoshop and WooCommerce differences
- Coding Challenge – JavaScript Easter Egg
- Bug in Stackoverflow styled badge system script
- Run function on plugin upgrade
- Custom Widget Creating PHP Exception When Placed In Its Own PHP File
- How to set value/term of a Woocommerce attribute text field in admin panel?
- Conditional Display of Links in Widgets
- Disable plugin on Specific Page of Admin
- How to add nofollow on all external links without plugin?
- wp_enqueue_scripts not working inside shortcode
- Over write plugin templates
- Tracking Disqus comments on Google Analytics
- PGP-Encrypt system-generated notifications
- Using has_filter with a class based plugin to check whether the plugin is active or not
- Social sharing post’s shortlink instead of permalink
- Handling jQuery Component Collision
- Plugin/Folder permission issues with Azure
- Get data from plugin People list in author template
- How to limit WordPress pages during updates?
- ajax front-end increment views on click
- WordPress converting my code
- Plugin to list active plugins across networked sites
- How to make a custom field as an editor in wordpress?
- Gutenberg: How to refresh ServerSideRender with useSelect and AsyncModeProvider true?
- How do i save plugin-specific info?
- Adding custom code to a WordPress site
- Output array into one table cell
- How to add a full edit link to front-end editor?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- get_post_type() and WP_QUERY issue
- Python with wordpress plugin
- How to find wordpress db schema changes when upgrading from 4.9 to 5.2
- WordPress Post Visibility Options for Frontend
- How do I go back to wordpress 3.5
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Run function on plugin activation before plugin is loaded
- Show Sitename on Yoast SEO Title tag [closed]
- Updating options into the wp database performance
- Creating author Specific page URL
- I want to know about the plugins that help in while I write code on my Page? [closed]
- How to get specific string/value from an array? php [closed]
- React error #231with Custom Blocks after upgrade to WP 5.5
- Woocomerce add info after order email prouct item
- WordPress super admin login issue. (Automatically logout)
- Background Music WP [closed]
- WordPress failing to update plugins
- Why is it important to check for isset and is_array before checking in_array in this example?
- Upload files to the plugin menu
- Plugins & backup not working correctly on new Digital Ocean server
- Don’t load the theme for a page FROM a plugin EDITED
- Call another page in forms
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- How to force load a page in plugin?
- Attachments broken after giving WordPress its own directory
- Chat support plugin? [closed]
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- how does ‘init’ /’parse_request’ hook work for wordpress?
- Service status plugin
- Remove Zero Money From Previews Order woocommerce
- Having a problem with rewrite_rules and rewrite_tags – url not rewriting properly and query var missing
- Share login credential with QR code
- Get full URL of WP plugin admin page
- WooCommerce Stripe payment plugin working perfectly in storefront parent theme but not in the child theme
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Public WP website with one area just for members
- Avoid WordPress header bar when form submission using admin_post in the frontend
- WordPress website dont load CSS, JS and images
- Echo custom admin field into a is_single()
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- Hide ‘add to cart’ button for some products [duplicate]
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- ClassLoader.php issues after moving to a new host
- Options page textarea to populate custom post select field
- Add Flatr button to Sharing option
- Cannot access variables within a widget
- WordPress 3.5 install error
- Advanced Permalinks plugin breaks RSS
- Add meta tags with a plugin?
- How to use ‘Event Manager Shortcodes’ plugin via the php code? [closed]
- Customize Multi-Column Tag Map to fetch specific post-type
- Upload Image to desired directory through plugin
- Fast Tranfering my WordPress site to another server
- Display out of stock products in WooCommerce [closed]
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Custom wordpress plugin does not save select element
- Need help with wordpress audio preload
- Share or sync user table data with another user table
- move setting data from wordpress api to codestar freamwork
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- How to create new title and its description inside a section in WP Customizer?
- Issue: Unable to Access WordPress Admin and Database Errors
- I want to move the one click accesbility button on bottom of my website screen,
- WordPress : how to create onglet and remove it when only one
- Which approach for managing automatic updates would be more robust?
- Custom Elementor controls not appearing in the widget Advanced tab using injection hooks