update_site_option action-hookWP 3.0.0

Fires after the value of a network option has been successfully updated.

Usage

add_action( 'update_site_option', 'wp_kama_update_site_option_action', 10, 4 );

/**
 * Function for `update_site_option` action-hook.
 * 
 * @param string $option     Name of the network option.
 * @param mixed  $value      Current value of the network option.
 * @param mixed  $old_value  Old value of the network option.
 * @param int    $network_id ID of the network.
 *
 * @return void
 */
function wp_kama_update_site_option_action( $option, $value, $old_value, $network_id ){

	// action...
}
$option(string)
Name of the network option.
$value(mixed)
Current value of the network option.
$old_value(mixed)
Old value of the network option.
$network_id(int)
ID of the network.

Changelog

Since 3.0.0 Introduced.
Since 4.7.0 The $network_id parameter was added.

Where the hook is called

update_network_option()
update_site_option
wp-includes/option.php 2211
do_action( 'update_site_option', $option, $value, $old_value, $network_id );

Where the hook is used in WordPress

Usage not found.