Home › Forums › General Issues › Clear field after time period › Reply To: Clear field after time period
I’d start by adding a hidden custom field that sets the date that gets set when the value of the chekbox is updated. You can set the value with an acf/save_post filter http://www.advancedcustomfields.com/resources/acfsave_post/ or maybe even an acf/update_value filter http://www.advancedcustomfields.com/resources/acfupdate_value/ and you can set another field with the date or date and time using update_post_meta() http://codex.wordpress.org/Function_Reference/update_post_meta.
Then I would look at learning how to set up a cron in WP https://codex.wordpress.org/Function_Reference/wp_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.