Home › Forums › General Issues › periodic auto save › Reply To: periodic auto save
I have no idea where to start doing this..
Have you checked that the new Heartbeat API in WordPress does not already perform this kind of autosave for user profiles (probably not but worth a lookyloo)?
Suppose you might be able to do something using this filter:
https://codex.wordpress.org/Plugin_API/Action_Reference/personal_options_update
Like register a custom JS script which upon visiting the profile page creates a session cookie (or perhaps localstorage for html5). Then you run a timed function every 10 seconds or something which looks into all the fields and saves them by field name -> value..
Then when a person loads the edit page of their profile you check if the cookie is set and if so run through all values and input them in the approriate field (by field name).
This is just a quick idea on how to do it and I have no idea if it’s actually doable 🙂
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.