delete_option action-hookWP 2.9.0

Fires immediately before an option is deleted.

Usage

add_action( 'delete_option', 'wp_kama_delete_option_action' );

/**
 * Function for `delete_option` action-hook.
 * 
 * @param string $option Name of the option to delete.
 *
 * @return void
 */
function wp_kama_delete_option_action( $option ){

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

Changelog

Since 2.9.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.