Function: unregister_setting

unregister_setting( string $option_group, string $option_name, callable $deprecated )

Unregister a setting.

Shortcut: us

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.


Name Type(s) Default Value Description
$option_group string

The settings group name used during registration.

$option_name string

The name of the option to unregister.

$deprecated callable ''


WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.