With Multisite, you need to use add_site_option/get_site_option instead of add_option/get_option.
https://codex.wordpress.org/Function_Reference/get_site_option
Related Posts:
- Certain functions are undefined when called form mu-plugins
- ‘Global’ settings page for multisite plugin
- How can I log a user out of WordPress before the page loads?
- Can I enable/disable/hide plugins on a per-site basis in multisite?
- How to enable Admins to see Plugins
- How to assign user a role if none is present when logging in
- How can a plugin run a script after being updated in MultiSite?
- Network-Wide Plugin Settings Management
- How to use a Must-Use plugin to hide a regular one and to hide itself?
- Shortcode display outside the div
- How to remove action from plugin?
- Is there a way to share content amongst wordpress sites
- Multisite: Activate plugin for subsites only?
- How to filter content post only on save
- How to add inline css/js inside a shortcode
- Get list of sites that uses specific plugin or theme
- What is the purpose of $merged_filters?
- add action wp_head not working
- get_option compatible with wordpress network (multisite)?
- Plugin custom Action Hook not working
- What are the benefit in adding hook in the init() hook?
- wp_get_environment_type is undefined
- Cannot access wp-admin after disabling all plugin
- How to hide plugin from WordPress Multisite admin plugin list
- Is the wordpress user-model changed in wpmu?
- Error 404 using wpml plugin
- How to define WordPress plugin shortcode globally for multisite?
- Unable to install theme recommended plugins on Multisite
- Where to hook my plugin’s action
- WordPress Multisite plugin delegation
- How do I tell what plugins are used on my multisite install?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- Get posts from WP_Query and format them on admin_head
- Solutions to repost categories into multisite blogs?
- Any recommendation on how to manage ads?
- Plugins not showing in Multisite dashboard
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- How to get all of the activate_plugin action parameters?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- WordPress multi domain – redirect
- Removing an action from wp_footer called in a class that’s inside a bigger class
- “Micro-Site” Options
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- How to create user that has permission to create new sites on WordPress with multisite option enabled?
- Subdomains with almost the same content
- Uninstalling plugins across all sites
- External Script Using WP – Hooks / Actions Not Working?
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- Submit custom form from post content and execute in plugin
- What is @Action in WordPress?
- _prime_post_caches in wordpress
- How passing values to construct function with Actions?
- add_action into another add_action not working
- a weird attribute on every html tag
- Understanding State in WordPress Multisites
- Submit Form data to another page via Ajax (WordPress Way)
- Why do plugins often ask to add in to templates?
- Does using `add_action( ‘init’…` cause performance issues?
- One sub site is slow while all others load fine, same theme & plugins [closed]
- How to get menu location in wp_update_nav_menu hook
- Are there action hooks for comments?
- 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?
- Advanced WordPress plugin activation detection
- how to execute some code after a post is published in WordPress [duplicate]
- How to remove a CPT Menu from the Root Admin only
- Dequeue, Unregister, Remove Action – Not Working on Plugin
- Add action to custom Function
- Cannot add edit themes and add plugins after multisite update
- How to hook into action/filter call
- how to make a wplang for network fill automatically
- Plugin to create unlimited custom shortcodes?
- Constructing a Pay to Download music website with wordpress
- Fatal error: require_once(): Failed opening required
- Sharing varible between two add_actions
- Hooking into the HTML header container
- Removing Plugin Action via Theme for Non-admins
- Multisite converted to Single Site can’t add new plugins or new themes
- Copying content from my other websites
- Remove action added in plugin class from theme
- {status}_{post_type} does not run correctly?
- how to add navigation icons in specific template?
- Category as Subdomain for One WP Install
- Update javascript URL in header – Domain Mapping Plugin [closed]
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- 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
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- Passing a parameter to filter and action functions
- Run only on plug-in activation instead of wp_head
- Remove action plugin
- Check if user is in a group of another site within multisite network [closed]
- Pulling sub-site content into specific pages
- OOP Plugin: Where should I place the action hooks in the class?
- add query string to all pages after user logged in
- Hook automatic_updates_complete to autoupdate plugin
- Unable to access WPadmin, website down
- Check Plugins in Use by Mutli Site Network