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.


Top ↑

Source

File: wp-includes/option.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More