I think the action wp_ajax_get-comments
is not triggered, if you quick-update the comment. You should check, which ajax request is triggered on the update and then change your code into:
if( doing_action( 'wp_ajax_get-comments' ) || doing_action( 'wp_ajax_quick-update-action' ) ){
...
}
I am not able to test this code at the moment, but i hope it works.
Related Posts:
- What for is the table “wp_commentmeta” exactly?
- Running a function on comment status change
- Is it possible to show custom comment metadata in the admin panel?
- Add Comment Custom Field
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- Upload images with comment
- Add a drop down list to comment form?
- An action hook where a comment meta is updated
- What are the additional fields in wp_comments used for?
- Let user edit his own comment
- WordPress Comment. Need some details of wp_comments DB table
- How would I count the number of times a comment meta field’s value is in a post’s entire comments?
- How to make all the posts commentable by default? Imputs in Settings/Discussions are not saved
- Get comments from post and sort by commentmeta value
- How to sort posts by the average of comment meta values
- How to get a value from comment meta
- Name of comment field differs on different sites
- Make every comment go to the spam folder
- How to display comment meta under each comment content
- Update comment meta for all comments of specific post
- How to get Post title by locale with Qtranslate-X
- get_comment_meta not behaving as expected
- How to filter comments by comment_meta
- Top rated posts Average rating issue
- WordPress Commenting System User access and Security
- Add comment meta
- Comment-Meta doesn’t work with latest wordpress update
- add field comment [duplicate]
- Use country flag as user avatar based on comments IP address?
- Add ACF Quick Edit Columns on Comments
- Add option to disable comments on a per posts basis?
- What should I do to make generated avatars different for anonymous comments?
- Check If comment author is registered
- Success message in comment form
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- Is there a hook for comment author link?
- How can I edit the email sent when a new comment is received?
- How to remove or replace the log-in link for comment replies?
- How to Block Access to Standard Login Flow and Comment Flow
- Prevent Contributor to show comment list
- where to modify get_comment_author_link()?
- Does Akismet plugin expose any hooks, functions, class that can work with custom code?
- Comments Feed & Custom Post Statuses
- If new comment posted in custom post – send notification to custom email from custom field
- Can I have two single.php files and have one display just the post and the other display comments for that specific post?
- How can I change the link in comment form “Log in to post a comment”?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- Does wp_new_comment expect a comment in HTML?
- Draft / schedule comments?
- How to insert Comment metadata via REST API
- Opening all posts for comments
- Unix timestamp for post comment
- Ajax comments not working
- How to query comments only for the current post?
- WordPress Comments are automatically publishing
- save_post action hook for comments
- How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?
- All users/comments suspected as bot? [closed]
- Show comments of a user post only when they are login
- comments in Admin
- How to get and use the the number of days since the last comment?
- How do I add class to an admin comment?
- Best way to tell if a comment is from a user?
- How to make comments private for commentor and post author
- WordPress Spam Comment Filter
- Which hook do I use to edit pending comment count on wordpress dashboard?
- comment button shows only logged in users wordpress
- Getting comments of an specefic user
- get only one last comment from each post
- Applying same style to all the comments on the page
- Customise Comment form
- Limit action in comment according to IP
- stumped on add_action hook to delete_comment – any ideas?
- Can I create a new comment type?
- Avoiding calls to theme-compat
- Allow tags between shortcode in comments
- Delete/Spam Comment Button
- Who approved a comment, to show up in dashboard
- comment just attachment .. reply just text … can I do that?
- I have an odd field with a purple background, mentioning HTML-codes to use while leaving comments
- No comment Section but still got a Comment
- How to prevent users/authors from seing IP/email of new commentators?
- Why are my threaded comments not quite working? [closed]
- $post->comment_status always returns ‘closed’
- Order comments in admin by custom date
- WordPress Comments – Divide by conversation like Medium.com
- How to replace anonymous comment form with a registration form on wordpress?
- Redirect first time comments
- Posting XML in comment section
- comment files and s
- Comments – Ensure the correct field is highlighted for nested replies
- How to hold all comments for moderation, including author’s comments on own post
- Subscribe to a post’s comments without posting a comment yourself
- WordPress error when sending comment
- WordPress Page Template: Comment Filtering with Querystring
- comments are going to spam
- Why default comment fields don’t show up?
- How to enable truly anonymous posting in bbPress forums? [closed]
- TinyMCE in comment reply form showing toolbar but can’t edit reply
- Add pending for reply comment in console WordPress