New answers tagged settings-api
in register_settings you need to pass the names of the options you use. right now it seems like you left that call the same as from wherever you copy & pasted it (not criticizing at all here). If you need two options (why?) then you need to call it twice, once for each option. The option name is the second parameter to the function, the first can be ...
Settings API is (also) about the modularity of the settings, settings can be removed (never heard of anyone do it but it is possible) or amended (my favorite technique right now). When you separate the HTML and PHP you are breaking the modularity so maybe the setting API should just not be used by you. As with many other things you can probably hack it to ...
Setting aren't registered in the database by plugin, though a plugin should be using an identifying prefix. That is, there is no specific queryable cross-linking in the database between plugin and setting. The only way to way to pull all settings for a plugin is to know what keys the plugin has used to save those settings.
Most likely your $options is a string and not an array. It is always better to validate that the $options are in the format you are expecting especially in development time when you are likely to switch formats and too lazy to clean the DB when doing that. something like if (!isset($options['hide_avatar'])) $options['hide_avatar'] = 0; Might have ...
Top 50 recent answers are included