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:2344delete_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.
Signature, return type and hooks compared across 5 parsed releases.
4.7.0
The
$network_id parameter was added.from the docblock3.0.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 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.