I have an object key/value that I’d like to insert somewhere for X theme to allow me to ‘select’ rather than have to commit to memory the exact spelling/syntax of each object key. For instance, I am using GSAP to animate, and I’m doing so with custom attributes (e.g. ‘data-animationType’, ‘data-animateChildren’). I’d like to store the attributes in an object, along with the possible values (i.e. { ‘data-animationType’: { “slide-up”, “slide-up-small”, “slide-right”, “slide-left”, “custom-animation-name”, …}
That way, when I’m adding elements to Pro, instead of remembering what to type, I can click on the db icon under attributes, and then select the animationType object for the key, and then whatever value I’ve added (or add in the future). Hopefully, that makes sense.
In the place where the global stuff is (pos name, author, date, etc).
I don’t mind using ACF, and I don’t mind adding a function in my functions.php to declare the object. There aren’t many advanced documentation notes available yet it seems. Thanks in advance! 