As a reference
To create network or global settings, you need to do the following
-
Add a settings page
add_submenu_page( 'settings.php'... # cf options.php for blog level`
-
Add a global option
add_site_option($key,$value)
-
Update a global option
update_site_option($key,$value)
-
Get a site option
get_site_option($key)
Global settings are saved to the sitemeta
table (individual blog settings are saved to <blog_id>_options
table
- I think the Settings API functions at the blog level – so uses the options table, not sitemeta. So, you can’t use option groups and the like at the network level (please comment if I’ve got this wrong)
Related Posts:
- How to add field for new site-wide option on Network Settings screen?
- Inherit plugin settings to new site in Multisite
- How to tell if plugin has been network activated
- Duplicate settings of master blog to slave blogs in WP multi-site installation
- Network-Wide Plugin Settings Management
- Redirect to another page using contact form 7? [closed]
- Multisite Plugin – Access options (wp_options) on child sites
- How to get values from network settings panel?
- Contact form 7 select box different value-text than content-text in option [closed]
- Plugin Development: WPMU or WP?
- Auto Load Plugin Hooks inside Must Use Plugin
- How Is Network Activate Different From Activate (by Implementation)?
- How to install plugins in individual sites on a wordpress network?
- How to Check If A Plugin Is Enabled Through API?
- Fatal error: Call to undefined function wp_get_current_user()
- How to enable Admins to see Plugins
- How to create a Page alias in WordPress
- Is there a way to share content amongst wordpress sites
- While Using Static Pages, How Can I Get /blog into the URL of Each Post?
- How to install WordPress Multisite with different domains under the same subdirectory?
- Get all options saved by another plugin
- Multisite: Activate plugin for subsites only?
- Enable/Disable WP options programmatically
- Settings API – input always updates over validation
- Get list of sites that uses specific plugin or theme
- How to setup a Network Plugin across the network with only my settings?
- WordPress language switcher
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Restore a Plugin’s Default Settings
- add action wp_head not working
- get_option compatible with wordpress network (multisite)?
- Is it possible to set up multistore in Woocommerce? [closed]
- Cannot access wp-admin after disabling all plugin
- Default Plugin Settings Not Writing to Database
- Error 404 using wpml plugin
- Update Option Error: Notice: Undefined index
- How to define WordPress plugin shortcode globally for multisite?
- Disable multisite-wide plugins on specific sites
- WordPress Multisite plugin delegation
- How do I tell what plugins are used on my multisite install?
- Why slash is removed after domain?
- Multisite custom user activation emails – html
- Get plugin option in another PHP file
- Image upload and other options in the same plugin settings form?
- NGiNX + PHP5-fpm + CDN Tools (plugin) [closed]
- Install (enable) plugins on multisite, on localhost
- WordPress wp-admin/network/plugin-install
- Create a multisite network for an existing installation
- “Micro-Site” Options
- Configuring Propel to Work with Multisite
- Enabling plugin failed because MySQL user do not have CREATE permissions
- options creation for plugins
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- Certain functions are undefined when called form mu-plugins
- WordPress error: Options page Setting_ not found in the allowed options list
- Understanding State in WordPress Multisites
- One sub site is slow while all others load fine, same theme & plugins [closed]
- Allowed memory size exhausted problem
- Saving widget options from class method
- How to display terms and conditions in post area?
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- Change in one place the data about the company, which are placed on several pages
- How to save plugin custom settings page fields
- How to reinstate previously saved option?
- WordPress’s is_plugin_active_for_network function not working for multisites
- Adding a theme option to the admin that lets me turn on/off a javascript file
- How to make a textarea accept javascript in my settings apge?
- Cannot add edit themes and add plugins after multisite update
- How do you add a settings page to another menu?
- Storing Form data in a different database
- how to make a wplang for network fill automatically
- Localise settings section headline
- Plugin to create unlimited custom shortcodes?
- After enable multisite enviroment in wordpress site creation wizard not working
- wp_options not returning value for logged out users?
- In a WPMU that uses several different domains, how to enable users to register subdomains of any domain from the main site?
- Problem with MEMCACHE and Redis with wp_options
- WP Forms not displaying,becomming an fatal error
- disable plugin activation on no multisite
- Multisite converted to Single Site can’t add new plugins or new themes
- Optimized PHP & WordPress settings for speed/performance?
- Category as Subdomain for One WP Install
- WP options plugin setting not saving the selected checkboxes
- How do I add a textarea (multirow) option to my WordPress plugin?
- Registered sidebar area is not shown from plugin.
- why my wordpress dont have toolbar like, plugin, themes and other?
- How to Call Function From Separate WordPress Install on Same Server?
- database – multiple wordpress installations using same database – can they share plugin settings?
- WordPress update plugin through Dashboard/Plugins displaying error
- Coming soon pages with rest of site in maintenance mode
- Query Shortcode from a multisite to appear on a different site?
- How to enable Admins to see Plugins
- get_option returning old value for non-admin users
- Multiple Accounts on 1 email – Multisite
- get Options value in “external” page
- Check if user is in a group of another site within multisite network [closed]
- WordPress multisite haml templates
- why i cannot see some plugins while they are enabled on network admin page?
- How to access values from your own settings page in javascript?