WPDev.one
Core Function
View Source on Trac ↗

set_user_setting()

set_user_setting( mixed $name, mixed $value )

Adds or updates user interface setting.

Parameters 2 required

Name / Type Description
$name
string

The name of the setting.

Required
$value
string

The value for the setting.

Required

Return Value

((bool)
(bool | null) True if set successfully, false otherwise. Null if the current user is not a member of the site.

Function Information

Since Version
2.8.0
Source File
wp-includes/option.php
Advertisement