Home › Forums › Backend Issues (wp-admin) › Automatic clear value in date pick – based on actual date › Reply To: Automatic clear value in date pick – based on actual date
Is this on a post? Options? Taxonomy?
You need to build a CRON that looks at wherever the values are stored and checks the dates and then removes them if they are past.
For example if these fields are on some type of post then the cron needs to do a query that gets all of the posts that have values in this field, loops over those posts, checks the date and then updates or removes the field value.
https://developer.wordpress.org/plugins/cron/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.