wppaste
WordPress

do_action( 'delete_site_option', string $option, int $network_id )

Since
3.0.0, 4.7.0
Fires after a network option has been deleted.

Parameters

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

Where this hook fires · 1

  • wp-includes/option.php:2363delete_network_option()

Source code

		 * @since 3.0.0		 * @since 4.7.0 The `$network_id` parameter was added.		 *		 * @param string $option     Name of the network option.		 * @param int    $network_id ID of the network.		 */		do_action( 'delete_site_option', $option, $network_id ); 		return true;	} 	return false;}

Changelog

Introduced in 3.0.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
Introduced.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.