WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/update site option

Contents

Description

This function is essentially the same as update_option() but works network wide when using WP Multisite.

Usage

<?php update_site_option$option$value ); ?>

Parameters

$option
(string) (required) Name of option. Expected to not be SQL-escaped.
Default: None
$value
(mixed) (required) Option value. Expected to not be SQL-escaped.
Default: None

Return Values

(boolean) 
False if value was not updated and true if value was updated.

Examples

Notes

Change Log

Source File

update_site_option() is located in wp-includes/option.php.

Related

See also index of Function Reference and index of Template Tags.