Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.