WordPress Settings API: saving multiple rows of similar data
I’ve been experimenting with the plugin options starter kit but can’t find a way to save multiple rows of similar data using the Settings API. Example of what I’m trying to save:
I’ve been experimenting with the plugin options starter kit but can’t find a way to save multiple rows of similar data using the Settings API. Example of what I’m trying to save:
Is there a way, using the Settings API, to disable the use of the cell of the table created for options?
The entire day today I remained frustrated with few things. I am learning WordPress setting API from a Video Course offered by Team Tree House. I was watching Videos and writing the codes ditto, but have an issue at one point.
I’m not a complete novice with php or wordpress but am wanting to approach this problem the most efficient way so believe asking here will help.
I know this may be a duplicate however I haven’t been able to make sense of previous questions.
hope everyone is doing good! How can I have a single sanitization callback for multiple fields?
I am creating one custom setting panel, my codes are
Below is my code for a simple plugin settings page. It works and saves an option (“EN”, “CZ”).
Using add_settings_field();
i am able to add my custom setting:
When the time comes that one wants to create a settings page, one stumbles upon two semantically similar WP functions called: