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

WPMU Functions/update site option


Updates global (i.e. networkwide, not for the current blog) key and value data with the provided un-sanitized information.

This function has been moved to functions.php and now intelligently degrades for normal WordPress installations. (by returning the value of update_option() rather than handling the processing its self.


Note: function expects $key and $value not to be SQL escaped.

(string) (required) Name of key
Default: None
([[How to Pass Tag Parameters#mixed|mixed]]) (required) Value of key
Default: None

Return Values

True on success, false on failure.


<?php update_site_option($key$value); ?>

Source File

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

This article has been requested to be merged into Function_Reference/update_site_option.