What is the difference between `get_option()` and `get_site_option()` in WordPress Multisite?

WordPress Fundamental Medium

WordPress Fundamental — Medium

What is the difference between `get_option()` and `get_site_option()` in WordPress Multisite?

Key points

  • `get_option()` is site-specific, while `get_site_option()` is network-wide
  • `get_option()` accesses wp_options table, `get_site_option()` accesses wp_sitemeta table
  • `get_option()` is for individual site settings, `get_site_option()` is for network-wide settings

Ready to go further?

Related questions