wppaste
WordPress

do_action( "add_site_option_{$option}", string $option, mixed $value, int $network_id )

Since
2.9.0, 3.0.0, 4.7.0
Fires after a specific network option has been successfully added.

Description

The dynamic portion of the hook name, $option, refers to the option name.

Parameters

$optionstring
Name of the network option.
$valuemixed
Value of the network option.
$network_idint
ID of the network.

Fired at · 1

  • wp-includes/option.php:2245add_network_option()

Source

		 * @since 4.7.0 The `$network_id` parameter was added.		 *		 * @param string $option     Name of the network option.		 * @param mixed  $value      Value of the network option.		 * @param int    $network_id ID of the network.		 */		do_action( "add_site_option_{$option}", $option, $value, $network_id ); 		/**		 * Fires after a network option has been successfully added.		 *		 * @since 3.0.0		 * @since 4.7.0 The `$network_id` parameter was added.

History

Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

4.7.0
The $network_id parameter was added.from the docblock
3.0.0
from the docblock
2.9.0
As add_site_option_{$key}.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 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.