Home › Forums › Add-ons › Options Page › Reset to default and Save button › Reply To: Reset to default and Save button
I believe it’s possible, but you need to create a custom code to handle the action.
What I suggest you is to create a select or radio field instead to specify if you want to reset the data. After that, you can check it by using the acf/save_post hook. If the field is selected, then you can use the update_field() function and delete all of the related fields for the current option page.
I hope this makes sense 🙂
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.