You can use wp_insert_comment action, which is triggered on every comment insertion.
Related Posts:
- How does add_action ‘comment_post’ work?
- what is correct way to hook when update post
- Does an activated plugin automatically mean its methods are available to other WP functions?
- How to set custom cookies before output
- Check php version before theme activation
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- Getting the comment number relative to all the post’s comments
- add_meta_boxes action with refresh on save
- Use wc_enqueue_js only on specific pages – nested add_action
- How to Remove a Filter from the Admin List Table?
- How do I create comment-reply-button using element not
- Find variables available at a given hook
- How to check if comments are paginated?
- Why do filters/actions require an argument count?
- Appending meta value onto post content in WordPress during save_post
- Delete option value from array using update_option()
- Add “last” and “first” to WordPress Comment Pagination Links
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Automatically generate Post/Page from searched Database item?
- How to access function from outside of a class within this class in WP plugin?
- Extend a class of a plugin
- How to use return in my custom function instead of echo
- WP_cron won’t trigger my action
- How do I fetch all comments per post via WP REST API?
- Show comments menu in dashboard only if the site has comment
- Adding Default Settings to Theme My Login plugin
- action is not called after a php request
- Ajax not working es expected (Returns 0)
- Custom Form Processing Issue
- add_action shortcut?
- “comments.php” not available after edit in WP administration
- add element with add_action to posts from a specific category ID
- Sending data from custom inputs in WordPress comment form in the admin notification email
- Show wp_die if url form comment not emply
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- Trying to place a custom field after the total section in the checkout page in woocommerce
- Set meta field to publish date + 2 weeks
- How to implement a rating and review system for WordPress custom posts?
- Adding widgets to my plugin page instead of WordPress dashboard
- edit_comment_link is not showing for comment author
- Limit 1 global comment per minute
- Adding function to Genesis genesis_header [closed]
- Modify custom field input data before creating a new post
- Commenting out unwated CSS/scripts in HTML with PHP
- php function to display commenter username or login
- Genesis framework comments broken?
- check if comment submitted was successful
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- jQuery code not working when included in functions.php
- Alter required message using comment form api
- Should `wp_login` be used since it’s deprecated?
- How to show a users bio on a page
- Override a function defined in wp-includes/comment-template.php
- Change order of custom submenu link in WP Admin?
- How to list commenters and days since last commented
- How to add text to the start of all comments?
- Does anyone know all parameters of get_comments()
- wp_delete_comment takes two tries to delete – then deletes all comments
- WordPress redirect redirecting too many times or not at all
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- How to pass argument to add_action while the method is inside a class?
- Display attribute on shop page after the title
- Restrict characters in comment section
- Dynamically adding filters
- Woocommerce custom Plugin in wordpress [closed]
- Comment_author_url doing nothing
- I don’t have comments.php… how do I customize my comment fields
- Remove an action created by a Gravity Forms add-on
- Add custom field on admin dashboard comments / reviews
- How to pass parameters in wordpress shortcode?
- Display the list of user’s comments + the post title + date
- Use PHP Class in WordPress functions
- WordPress How do I pass a variable from one add_action to another?
- I want to hide “sold by” on certain pages with id page 43
- Fetch commens from a specific post
- Closing Comments conditionally in comments.php
- in the post admin, is it possible to make the post title input disabled using php?
- How to add delete, approve, spam Links to Comments
- wordpress form action page not found
- What’s the correct offset value for order ASC?
- How can I enqueue comment-reply script only on certain page?
- At what point during a typical request does the $wpdb object become available?
- Highlight posts currently being edited on multiple editor site?
- WordPress Plugin Receive a Link
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- How to add custom checkout field in user details mail template
- How to get the rating value of each comment
- Cannot modify header information – headers already sent
- Trouble figuring out how to get my button to submit comment
- Fix incorrect related posts code snippet
- How to convert my comment.html to comment.php
- Why a class property becomes empty?
- How to change wp-admin and wp-login urls
- How to sort custom sortable column by custom table value
- Guests comment form – prevent duplicate email addresses
- Permissions error when I use my plugin to delete comments in the front-end
- Is there a hook that I can use when a fatal error occurs?
- Too few arguments – wp_login action