Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Use the “comment_feed_where” filter to add date criteria to the comment SQL’s WHERE clause. This filter is used for singular post queries as well as for comment feeds. Add something similar to the following to the existing clause passed to your filter callback:
    " AND wp_comments.comment_date < '" . date('Y-m-d H:i:s') . "'"

Viewing 1 replies (of 1 total)
  • The topic ‘How to hide comments with future date?’ is closed to new replies.