wpdiscuz_after_comment_post
-
I’m using your wpdiscuz_after_comment_post hook. But the code below does not work as it should. The message appears, but AJAX stops working when adding a comment. That is, the comment that the user left does not appear in the comment tree marked “Awaiting moderation”. How to fix it?
add_action("wpdiscuz_after_comment_post", function () { ? ? $newCommentId = $newComment->comment_ID; ? ? $mes = 'Спасибо за ваш отзыв!'; // Текст благодарности ? ? echo '<script>console.log("' . esc_js($mes) . '");</script>'; ? ? wp_die($mes); }, 10, 2);
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wpdiscuz_after_comment_post’ is closed to new replies.