deleted_option
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
wp-includes/option.php 1242
do_action( 'deleted_option', $option );