Is there an elegant way to store fields (in my plugin i have hundreds of them for later use) generated from API call confronted and looped with CSV file in database so i can load them later without connecting to my api and loading csv?
Putting it simple: upon options save in my plugin i’m generating custom fields based on curl connection to API + loading CSV. But i want to store those fields in my database and later load them directly from there (or simply call specific field in DB), i don’t want to loop through API+CSV constantly.
How can i do that?
Only thing i was thinking was to set ANY values for each field and save the page, so it would store the values in DB (i need only field objects, so those fields are not saved in DB in any way because i haven’t entered any values there), but is there any more elegant way to do that?
Viewing 1 post (of 1 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