‘Global’ settings page for multisite plugin
I’m working on a plugin that will be installed in a multisite instance.
How do I create a single settings page that is visible at the “Network admin” level only – most of the guides i’ve seen relate to a standard blog level plugin. Any links to information would be useful, otherwise I’ll just end up going through sitewide tags to see how it’s being done there.
[Update]
Looks like sitewide_tags uses add_site_option
, get_site_option
and update_site_option
, and these functions use wp_sitemeta. However, from what I can see, there’s no support for register_setting, add_setting, etc, so you have to get and set your options manually.
Leave an answer