get_user_setting

SummerySummery

Retrieves user interface setting value based on setting name.

Syntax

get_user_setting( string $name, string $default = false )

ParametersParameters

$name

(string) (Required) The name of the setting.

$default

(string) (Optional) default value to return when $name is not set.

Default value: false

ReturnReturn

(mixed) the last saved user setting or the default value/false if it doesn't exist.

SourceSource

File: wp-includes/option.php


			

ChangelogChangelog

Changelog
Version Description
2.7.0 Introduced.
Scroll to Top