Serialized settings in rest api
I have registered settings and need it to be showed in REST API.
I have registered settings and need it to be showed in REST API.
Call me stupid but I coudn’t figure out how to do it. For text input I would just:
What I would like to do is to add a few custom fields to the general settings.
This is the code that I’m using. It works alright but I just cant figure how to add more fields.
I have a plugin that, among other things, has a javascript file that requires a few user specific settings. What would be the best way to get those settings into javascript from the plugin’s settings parameters?
I have re-worded this to make more sense.
I want to add a option to the “Gallery settings” (when you insert a gallery into a post).
My site currently has an outrageous 500k+ transient records in the wp_options table.
This causes the table to be crashed frequently and so be my site.
Is there an easy way to include an upload box to your settings page?
This has happened on a number of occasions now where I move my site from Localhost to Live environment and the theme settings such as the logo, and other settings are not copied with it, so I am almost have to rebuild the site twice sometimes.
I wonder if anyone could advise me further on my problem. Part of my plugin stores log files for debugging purposes. I have successfully displayed them in a (div#log) in my admin page using jquery and wp_localise_script. I have a button to delete these logs but I am unsure how to process this. I have a feeling that ajax might come in handy here but not sure where to start.