deleted_option WordPress Action Hook
The deleted_option hook is fired when an option is deleted from the database. This hook can be used to perform any actions that need to be taken when an option is deleted. For example, if you are using a custom options page, you may want to use this hook to remove the option from your custom page.
do_action( 'deleted_option', string $option ) #
Fires after an option has been deleted.
Parameters
- $option
(string)Name of the deleted option.
Source
File: wp-includes/option.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |