do_action( "update_site_option_{$option}", string $option, mixed $value, mixed $old_value, int $network_id )
- Since
- 2.9.0, 3.0.0, 4.7.0
Fires after the value of a specific network option has been successfully updated.
Description
The dynamic portion of the hook name, $option, refers to the option name.
Compatibility
- WordPress
- since 4.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$optionstring- Name of the network option.
$valuemixed- Current value of the network option.
$old_valuemixed- Old value of the network option.
$network_idint- ID of the network.
Where this hook fires · 1
wp-includes/option.php:2482update_network_option()
Source code
* * @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. */ do_action( "update_site_option_{$option}", $option, $value, $old_value, $network_id ); /** * Fires after the value of a network option has been successfully updated. * * @since 3.0.0 * @since 4.7.0 The `$network_id` parameter was added.Changelog
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.7.0
The
$network_id parameter was added.from the docblock3.0.0
from the docblock
2.9.0
As "update_siteoption{$key}"from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.