Home › Forums › General Issues › Update Site Timezone with ACF Field › Reply To: Update Site Timezone with ACF Field
If you’re looking to reverse-engineer Core functionality, just look it up in the source code: https://github.com/WordPress/WordPress/blob/master/wp-admin/options-general.php#L229
wp_timezone_choice() generates the select options. You’ll likely need to create a custom way to parse this into your ACF select though.
As for saving the field, the original option value should do. That’s what the WP options page does at least.
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.