Hello everyone,
we have a problem on an option page that contains a rather complex repeater field.
This option page is edited very regularly during the day to feed this repeater and by several different users … sometimes simultaneously.
This can lead to data loss.
I’m looking for a solution that would lock the option screen while it’s being edited by another user. Just like a page or an article.
Have you ever seen this scenario and do you know how to handle it?
thanks for your help!
This is not possible. Options pages are like any other admin settings page in WP. Values are stored in the options table. WP has no mechanism for locking options.
I realize that it is likely to late for this, but a better option to a large repeater is a custom post type where instead of a row in a repeater you can edit individual post.