Updates the value of an option that was already added for the current network.
$optionstringrequired
$valuemixedrequired
function update_site_option( $option, $value ) {
return update_network_option( null, $option, $value );
}
| Version | Description |
|---|---|
| 4.4.0 | Modified into wrapper for update_network_option() |
| 2.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_site_option