• TL;DR How can I moderate comments from post X but let the comments from all other posts unmoderated?

    Hello, I have a blog where from time to time I run “quizzes” in which my readers are required to solve a problem, find the name of a movie etc. I would like to moderate the comments from those posts for a number of days, but let the rest of the posts unmoderated.

    I couldn’t find an option to moderate only comments from a specific post. Is there a trick that can help me to achieve this? If not, can you point me to a specific plugin that does this? It’s kind of a bummer that you can only set up moderation globally.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m unaware of such a plugin, but that does not mean one is not available. You can likely search as well as I can for one 🙂

    A custom coded solution is not too involved. Hook the ‘pre_comment_approved’ filter. The comment data is passed as the second parameter. Check the comment_post_ID item for any quiz posts. To moderate a comment, return 0. For approved comments, return 1. You can also return ‘spam’ or a WP_Error object.

Viewing 1 replies (of 1 total)

The topic ‘Comments moderation for single post’ is closed to new replies.