wp_insert_comment issue
-
I’m having some issues with using the wp_insert_comment function. On its own it works just fine to insert new comments for a specific post.
However when I use get_comments() before wp_insert_comment() to check for duplicate comments the new comment is not inserted. Strangely it works if I refresh the page to try insert the comment again.
Any suggestions why this might happen.
The topic ‘wp_insert_comment issue’ is closed to new replies.