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