WordPress.org

Forums

[resolved] Disabling comments on posts based on date (2 posts)

  1. Edde Beket
    Member
    Posted 3 years ago #

    I'm looking for a WordPress Plugin that allows me to disable comments on posts published before a certain date.

    Basically it needs to do something like the line below, where the date should be something I can set.

    UPDATE wp_posts SET comment_status = 'closed' WHERE post_date < '2011-01-01' AND post_status = 'publish';

    I found the above query @ http://lrtm.nl/onv5OW (and here http://lrtm.nl/q8Ye4a), but is it available as a plugin?

    Thanks!
    Edde

  2. Edde Beket
    Member
    Posted 3 years ago #

    Not exactly what I was look for, but related and nice: http://wordpress.org/extend/plugins/comment-timeout/

Topic Closed

This topic has been closed to new replies.

About this Topic