deleted_option action-hookWP 2.9.0

Fires after an option has been deleted.

Usage

add_action( 'deleted_option', 'wp_kama_deleted_option_action' );

/**
 * Function for `deleted_option` action-hook.
 * 
 * @param string $option Name of the deleted option.
 *
 * @return void
 */
function wp_kama_deleted_option_action( $option ){

	// action...
}
$option(string)
Name of the deleted option.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

delete_option()
deleted_option
wp-includes/option.php 1242
do_action( 'deleted_option', $option );

Where the hook is used in WordPress

Usage not found.