This docs:
https://codex.wordpress.org/Class_Reference/WP_Meta_Query
Tells you can compare DATETIME values.
What is expected format of DATETIME for WP_Meta_Query?
This docs:
https://codex.wordpress.org/Class_Reference/WP_Meta_Query
Tells you can compare DATETIME values.
What is expected format of DATETIME for WP_Meta_Query?
Copyright © 2021 Jogjafile Inc.
From the Wordpress documentation, it seems that you should use the following string format:
Y-m-d H:i:s.So a meta query could be:
You can use the wordpress
current_timefunction to get the currentDATETIME:Source: https://developer.wordpress.org/reference/functions/current_time/