Home › Forums › General Issues › Reset custom field at target date › Reply To: Reset custom field at target date
When is this code run? Is it run on every page load and does it look at every user?
Is this field also a user field or is it somewhere else? Shouldn’t it also tell acf what user to get the value from?
$gettoniRimanenti = (int) get_field('gettoni, 'user_5');
This would normally be something you’d need to set up in a cron task and you would need to read through every user and check each one.
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.