delete_option WordPress Action Hook

The delete_option hook is called when an option is deleted from the database. It allows you to take an action when an option is deleted.

do_action( 'delete_option', string $option ) #

Fires immediately before an option is deleted.


Parameters

$option

(string)Name of the option to delete.


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