php – How to populate dropdown menù with custom data


I have two dropdown in my vue app that is part of a template page and I need to populate them. I’m not sure if store the data inside a json file or if create a custom db table that will work with my custom plugin to provide the data using a rest endpoint. What’s your suggestion about and how I can create custom table compatible with wp and get data from it? Maybe is a best solution to have a vue app for admin only where using a form I add data into options table and after I have all the data I need, get them using rest api?

devdev 2 months 2022-10-03T13:51:12-05:00 0 Answers 0 views 0

Leave an answer