I have a repeater field, every time a user adds a row I would like one of the fields to automatically be populated with a 4 digit number.
I would also like to keep track of this number in an options page.
Imagine this would be like a post id but for repeater fields, this has to be unique and keep increasing every time a user saves a repeater row.
These repeaters are in every custom post type edit screen.
How can I implement this?
I just need guidelines and functions I could use.
Thanks!