Not work hide comments with future date
The problem is you’re not using the action hook at all in the proper way. You’ll want to create date_query parameters and add this to the comment query. Here is what you can do to achieve this so that only comments created before “right now” are queried: add_action( ‘pre_get_comments’, function ( $commentQuery ) { $commentQuery->query_vars[ … Read more