I got around this by handling it all in JS / Jquery.
On a jQuery document ready clause I look for a specific type of anchor on page load and if that is present I assume that a message has just been posted. I then using jQuery display a nice little alert message up top of the page.
For the purpose of the sample code below I’ve used a standard JS alert function call to display the msg so you could alter this and make your own msg displaying function.
$(document).ready(function() {
// check for comment posts
if(window.location.hash) {
var urlHash=window.location.hash;
if(urlHash.indexOf('#comment-') === 0) {
alert("Thank you for submitting your comment. It will be reviewed and set live as soon as possible.);
}
}
});
Related Posts:
- Stop WordPress redirecting comment-page-1 to the post page?
- Importing old Disqus comments into WordPress
- How to add a class to the comment submit button?
- Comments screen in backend, how to disable email address of commenter for non admins
- How can I limit the number of comments per registered user per day?
- Parent comment’s author name
- get_comments_number of depth-1 (Level 1) (1 post)
- How can I control the comment counts filtering my CPT replies?
- How to auto-approve internal pingbacks?
- List Recent Comments from Across a Multi-site Network
- Can I store my custom comment_type into wp_comments table?
- Number of External Links in Comments – Moderation Option
- What is comment_karma?
- How to override function twentyten_comment
- Disqus over the default commenting engine, what are some pros and cons?
- How To Remove The “Click here to cancel reply” Link From The WordPress Comment Form
- Plugin from WordPress.com for comment notification…available? [closed]
- What are the additional fields in wp_comments used for?
- Enable Recent Comments widget to display comments on attachment posts
- Change allowed HTML tags for comments
- How can I highlight admin comments?
- On WordPress 4.4, how to get the post id using the comment_post hook
- Block comments from search engine indexing
- Create a “Reject” action for comments?
- Adding another arg to comments_popup_link
- Exclude Duplicate Posts in this SELECT Query
- Add action on delete comments?
- Exclude child comments in get_comments() or WP_Comment_Query?
- Changing “submitted on date” of comments
- Filter custom comment type from Manage Comments & Dash Widgets
- How to allow more HTML tags in comment for a certain comment_type
- Can’t seem to get this CSS to work…any ideas why? [closed]
- Change order of comment fields
- WordPress custom form action url
- How to add a strip of visual editor on top of comments textarea
- Threaded comments not working
- Customizing comments pagination for bootstrap
- comment_post action hook running on page load instead of after a comment is posted
- woocommerce allow users to select or use avatar
- Comments system doesn’t like International domains
- Comments on homepage (index.php) are duplicated under posts
- Comment Form – E-mail Not Required!
- Get a total count for all comments and display result
- Email notification to an email address other than admin for custom type post comments in wordpress
- Notification if Comment Author Field is left empty. E.g. change input border colour
- Polls with respective comments?
- Why does akismet prevent jetpack comments from appearing in my moderation queue? [closed]
- Filtering the Admin Comments List to Show Only Comments from the Current User?
- Comment Link from get_comments()?
- How do I automatically insert some text in the comment textbox on submit?
- if null or int(0) value to 0
- Problem with WordPress Comment
- Only show own comments in admin panel
- Where are comment ratings stored?
- Comments change the template name
- I can’t post comment via REST API
- WordPress scruity issue – Totally disable all comments by CSS — secure enough?
- Sending comment notifications to different recipients depending on taxonomy terms
- wp_new_comment requires author url and author email
- Replying to comments
- get_comments_number() vs. get_post_field( ‘comment_count’, ID )
- Where are comments coded when using custom theme?
- unsetting required fields in the comment reply form
- What is the point of get_comment_count() if you cannot limit by a comment type?
- Wrong IP address in comment section
- Problem code and show comments
- Comments turned off, but ‘Leave a reply’ link still there [duplicate]
- How to output number of comments with link to comments
- Highlight comments made by registered users of the site
- It doesn’t matter if I have more than one comment. get_comments_number still equal to one?
- Simple spam check for valid domain in commenter’s email address
- Allowing WordPress.org/com accounts on a self-hosted install
- How to remove the “comments” bit that appears next to or below the posts
- Post comments don’t show
- Get all comments associated with a specific page ID (comment_post_ID)
- Update post “A” on comment submition on post “B”
- How do I add custom field to Admin comment form and display
- I would like to count number of comments after 5 days ago
- Using Disqus with headless WordPress setup?
- Attaching author tag to the comment
- Comments counter only for Authors Posts
- How to show a “Comments Are Closed” message on posts where comments have been closed?
- Necessary to have a comments.php if there are no comments?
- Inserting comments via a procedure
- transition_comment_status gets called when untrashing comments
- spacebar is not working in input and textarea
- wp-editor-area textarea disapear on cancel-comment-reply-link click
- Conditionally process comments while ignoring replies
- Required Field for Comment parent only?
- Transfer comments from one domain to another
- WordPress is adding above html
- Passing user meta through comment form
- How do I separate author avatars and comments in 3.4.2?
- writing a plugin, how to disable the comment form altogether?
- How do I convert users who put an email and username for a comment into registered users? [duplicate]
- What filter or action to replace comments or add new comment system
- Display DISQUS on homepage
- How to stop a specific person to comment on my blog? [closed]
- Auto delete WordPress comments
- Add ACF Quick Edit Columns on Comments