The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Closed] Problems With `comment_post` Hook
How-to and Troubleshooting
(@mert2312)
Active Member
Joined: 5 years ago
Hello. I've been trying to echo a message after comment is posted and tried `comment_post` action that comes with Wordpress, but the message is not echoed on the screen. Also, when the action is registered and a comment is posted, the loader animation shows up but the comment doesn't become visible in the comment list. I can insert into database with that function and hook successfully, but echoing, returning or redirecting doesn't work. I've even tried functions that are confirmed as working, but no luck in echoing anything. I've also tried `wp_comment_insert`action, but I have the same issue. Insertion to database also works with it.
(@asti)
Illustrious Member
Joined: 8 years ago
@mert2312,
Please show on some screenshot where exactly you'd like to display the message, we'll provide you the right hook you can use.
(@mert2312)
Joined: 5 years ago
Active Member
Posts: 3
Sep 08, 2020 9:24 am
@asti Thank you for your reply. I'm trying to show a pop-up when user posts a comment.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8189
Sep 08, 2020 2:35 pm
@mert2312,
in this case, there is no simple solution I can post here there should be some additinal js function, that'll need to be called.
(@mert2312)
Joined: 5 years ago
Active Member
Posts: 3
Sep 08, 2020 5:06 pm
@asti would you mind pointing me to the right direction? I've been desperately looking for that everywhere on the web.