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.
Source
File: wp-includes/option.php
Changelog
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |