Do not display posts if get_post_meta reports date earlier than the current WordPress?

There is an arbitrary field, conventionally 'date' which passes the date.
How not to withdraw (and, ideally, to make a draft) post if this date is earlier than the current post_meta.

For example. Today 08.06.2019

There are 3 posts:
Tour tomorrow - $actual_date = 09.06.2019 - print
Tour today - $actual_date = 08.06.2019 - print
Tour yesterday - $actual_date = 07.06.2019 not derive, or ideally, do a draft

Ideally would be done without plugins. How is it possible to implement?

p.s. Php is not very strong, just understand, if there is some example, show pliz. )
March 23rd 20 at 19:38
1 answer
March 23rd 20 at 19:40
I think it's worth to look towards pre_get_posts. And adjust the query so that these posts were not included in the results.

But still in status "draft", I think it can be done for the crown.

Find more questions by tags WordPress