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
- How can I copy all users to newly created site on a multisite network in WordPress?
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Removing an action from wp_footer called in a class that’s inside a bigger class
- WordPress wp-admin/network/plugin-install
- Plugin developer automated documentation
- Create a multisite network for an existing installation
- Custom plugin init action causing general slowness
- “Micro-Site” Options
- External Domain on WordPress Multisite
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- add_action in static class [closed]
- How to create user that has permission to create new sites on WordPress with multisite option enabled?
- Configuring Propel to Work with Multisite
- Setup page on first login on multisite
- WordPress user account activation
- Subdomains with almost the same content
- Uninstalling plugins across all sites
- External Script Using WP – Hooks / Actions Not Working?
- Multiple domains issue
- 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
- “Master” WordPress Multisite – Database Sync
- Will these plugins work with wp multisite?
- User Signup in Multisite – Need Plugin or Advice
- Inject HTML meta tag inside wordpress tag using add_shortcode
- How to get post ID with hooks publish_post, new_to_publish, etc
- add_action in a custom plugin
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- register_activation_hook in oop approach
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Problem with removing plugin action
- edit_user_profile and show_user_profile are not firing inside a class
- Add action to fire when a published post is updated
- do add_action on condition
- Is there a way to figure out which action/filter invoked a function?
- get gravity form ID from backend/wordpress admin
- How to pass variables to a function argument using add_action [duplicate]
- _prime_post_caches in wordpress
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- How to trace SUBMIT button
- How passing values to construct function with Actions?
- Remove_action from plugin with a Class
- add_action into another add_action not working
- Multisite for Multisite?
- publish_post action doesn’t work
- Run a plugin just ‘once’ per page reload
- Using add_action before add_filter on a plugin?
- Notice: Uninitialized string offset: 0 in social sharing mu-plugin
- Is there a way to get plugins and themes not built for multisite to work on a network subsite?
- Multisite – maximum number of users with specific role
- a weird attribute on every html tag
- How to update mu-plugin
- Create a single website with 3 theme options in wordpress
- Why shortcode always displayed after footer not in body
- Understanding State in WordPress Multisites
- Submit Form data to another page via Ajax (WordPress Way)
- WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
- the_post hook is not firing for me
- Why do plugins often ask to add in to templates?
- Does using `add_action( ‘init’…` cause performance issues?
- do_action Nested List
- One sub site is slow while all others load fine, same theme & plugins [closed]
- Create a post builder skin in a plugin
- remove_action not removing add_action from constructor
- Plugin Development – Functions or Hooks?
- How to get menu location in wp_update_nav_menu hook
- Are mu-plugins plugins still deployed via wordpress.org/plugins?
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Basic function call on init failing
- How to create Admin Notice from Plugin with argument? [duplicate]
- Hook for page Request?
- Editing wp-config.php
- How to display terms and conditions in post area?
- Are there action hooks for comments?
- How to see which sites use my installed plugins (wordpress multisite)
- How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
- New bulk action to resend welcome emails
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- WooCommerce: after install hook
- WordPress super admin login issue. (Automatically logout)
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- How to remove a class function from a plugin by using remove_action()?
- Managing wordpress Themes & plugins for multisite
- Advanced WordPress plugin activation detection
- Trying to add_action in a loop
- how to execute some code after a post is published in WordPress [duplicate]
- How to remove a CPT Menu from the Root Admin only
- How to remove products-links after the product title using remove_action
- Hosting multiple sites
- Redirect Plugins.php to New Plugin Page
- Dequeue, Unregister, Remove Action – Not Working on Plugin
- Must use Plugin not updating HTML code in head
- Add action to custom Function
- Action on WordPress Install
- Issue removing Media Editor Tabs — Duplicate Items
- wp_ajax action responds with 0
- WordPress’s is_plugin_active_for_network function not working for multisites