WordPress.org

Codex

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

WPMU Functions/update site option

Description

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.

Parameters

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

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

Return Values

(boolean) 
True on success, false on failure.

Usage

<?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.