W3cubDocs

/WordPress

do_action( “delete_option_{$option}”, string $option )

Fires after a specific option has been deleted.

Description

The dynamic portion of the hook name, $option, refers to the option name.

Parameters

$optionstring
Name of the deleted option.

Source

do_action( "delete_option_{$option}", $option );

Changelog

Version Description
3.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/delete_option_option