Home › Forums › General Issues › Is there a way to set a default value for a timepicker field? › Reply To: Is there a way to set a default value for a timepicker field?
You would need to use the ACF JS API hook time_picker_init.
Sorry, that’s really all the information I have. I am not familiar with the time picker settings.
Alternately you can use the acf/prepare_field hook. The date picker field does not have a default value. You would need to set $field['value']
to the default value, for example if the value is empty then set it to the default.
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.