add_settings_field does not save data
-
Hi.
I’ve added a new field in my Settings->general page, following this example:https://codex.www.ads-software.com/Settings_API
The field is added (also in my DB), but any data I input is not stored.
I’m using bothadd_settings_field
andregister_settings
:add_settings_field('site_logo', 'Logo', 'site_logo_callback_function', 'general', 'default'); register_setting('general','site_logo');
So why is data not stored when I click the save button?
- The topic ‘add_settings_field does not save data’ is closed to new replies.