delete_user_setting

SummerySummery

Deletes user interface settings.

Syntax

delete_user_setting( string $names )

DescriptionDescription

Deleting settings would reset them to the defaults.

This function has to be used before any output has started as it calls setcookie().

ParametersParameters

$names

(string) (Required) The name or array of names of the setting to be deleted.

ReturnReturn

(bool|null) True if deleted successfully, false if not. Null if the current user can't be established.

SourceSource

File: wp-includes/option.php


			

ChangelogChangelog

Changelog
Version Description
2.7.0 Introduced.
Scroll to Top