Does the settings API work in multisite?
-
https://codex.www.ads-software.com/Settings_API states:
NOTE: When using the Settings API, the form posts to wp-admin/options.php which provides fairly strict capabilities checking. Users will need ‘manage_options’ capability (and in MultiSite will have to be a Super Admin) to submit the form.
Which would indicate that you shouldn’t use the settings API unless you specifically don’t want your plugin to work with multisite blogs.
But that doesn’t really make sense to me. I can’t imagine why anyone would want their plugin or theme only to work with single site installations and for super admins of multisite installations.
Searching the forums, there are a few threads that seem to indicate that the settings API does work for multisite installations and allows normal admins to save settings, so long as
register_settings
is used.Does the settings API allow normal admins to save settings in a multisite installation or not?
- The topic ‘Does the settings API work in multisite?’ is closed to new replies.