WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating an additional WordPress Network admin page, and I need to store some system-wide option. The good thing that a config file will be generated, so no access is required from the child blogs, but the question is: how to store options to Network Admin, and where will they be stored in the database?

Thanks, Peter

share|improve this question
up vote 1 down vote accepted

Use add_site_option() and update_site_option(). You can find these functions in wp-includes/functions.php.

share|improve this answer
And as far as I see those will be stored in the sitemeta table if network is enabled and will fall back to options table if not. – petermolnar Feb 16 '12 at 9:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.