I am building option page with some fields but the option page is used with multiple users at the same time and they rewrite their changes, i would like to make default wordpress popup/prompt like you are editing post that says * user is currently editing and you cant etc…
Hi, I also think that this is a potentially serious issue in many cases. I’ve been looking for a possible solution, and am very surprised to find this ticket that nobody has responded to for more than a year now. I hope to see a reply from the ACF team soon.
This is a user help forum. Getting an answer here would need some other user that has solved this issue. I do not create options pages that need to be edited regularly. If something needs to be edited on an ongoing basis by multiple people then I would likely look for a better solution than an options page.
I just did search for something, locking an options page would be the same as locking any other admin page added with add_menu_page(), which is what ACF uses to add the page. As well as any of the existing admin pages on the site. If these pages could be easily locked I would suspect that someone would have figured it out by now.
The difference here is that a post as a specific entry in the database and a flag can be added to the database to indicate that page is currently being edited by someone else. Options do not support this. All fields on any options page or any settings page are all stored in the options table and there is no mechanism available to flag all of the fields on a particular page as being edited.
This question has not gotten an answer probably because what was asked is not possible.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users