pre_delete_site_option_(option) action-hookWP 3.0.0

Fires immediately before a specific network option is deleted.

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

Usage

add_action( 'pre_delete_site_option_(option)', 'wp_kama_pre_delete_site_option_action', 10, 2 );

/**
 * Function for `pre_delete_site_option_(option)` action-hook.
 * 
 * @param string $option     Option name.
 * @param int    $network_id ID of the network.
 *
 * @return void
 */
function wp_kama_pre_delete_site_option_action( $option, $network_id ){

	// action...
}
$option(string)
Option name.
$network_id(int)
ID of the network.

Changelog

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

Where the hook is called

delete_network_option()
pre_delete_site_option_(option)
wp-includes/option.php 2239
do_action( "pre_delete_site_option_{$option}", $option, $network_id );

Where the hook is used in WordPress

Usage not found.