Settings API wiping out values
-
I’m trying to user the settings API and failing. I’m using functions ‘register_settings’ and ‘add_settings_fields’ as documented. It all appears to work when I click ‘Save Changes’ button on my settings form but no settings are saved in table rs_options.
I’ve traced it to function ‘update_option’ which sanitizes the value of my setting with a call to function ‘santize_option’. This sanitizes the value right down to NULL – clean, but useless.
Why is it doing this, and how can I stop it with editing core code?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Settings API wiping out values’ is closed to new replies.