• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / update_site_option() – Update the value of an option that was already added for the current network.

You appear to be a bot. Output may be restricted

Description

Updates the value of an option that was already added for the current network.

Usage

$bool = update_site_option( $option, $value );

Parameters

$option
( string ) required – Name of the option. Expected to not be SQL-escaped.
$value
( mixed ) required – Option value. Expected to not be SQL-escaped.

Returns

bool True if the value was updated, false otherwise.

Source

File name: wordpress/wp-includes/option.php
Lines:

1 to 3 of 3
function update_site_option( $option, $value ) {
  return update_network_option( null, $option, $value );
}
 

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: update_site_option
Plugin ref: WordPress
Version: 5.6
Sourcefile: wp-includes/option.php
File ref: wp-includes/option.php
Deprecated?: No
API Letters: O,S,U

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites