unregister_setting WordPress Action Hook

The unregister_setting function is used to remove a previously registered setting from the Settings API. This function should be called in the initialization function of your plugin or theme.

do_action( 'unregister_setting', string $option_group, string $option_name ) #

Fires immediately before the setting is unregistered and after its filters have been removed.


Parameters

$option_group

(string)Setting group.

$option_name

(string)Setting name.


Top ↑

Source

File: wp-includes/option.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.5.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.