Multisite: Settings API vs Options API
-
Hello!
I have a plugin that uses the Settings API and adds a menu for its configuration under “Settings” on the left dashboard menu. It adds the page with
add_options_page()
hooked onadmin_menu
. Sections are added to the page withadd_settings_section()
, registered withregister_setting()
, and fields added withadd_settings_field()
. Everything is working perfectly on single-site instances.What’s the best way to support multisite as well? All configuration for this plugin is global (the configuration must apply to every site and can only be set by network admins on the network-admin dashboard).
This StackExchange post, although several years old, says that the Settings API does not support global network-level configurations. This means I must use the Options API instead. Is that correct?
Should I give up the Settings API (even for single-site) and switch to Options API?
Thank you!
- The topic ‘Multisite: Settings API vs Options API’ is closed to new replies.