get_user_setting


get_user_setting ( $name, $default_value = false )

Parameters:
  • (string) name The name of the setting.
  • (string|false) default_value Optional. Default value to return when $name is not set. Default false.
Returns:
  • (mixed) The last saved user setting or the default value/false if it doesn't exist.
Defined at:

Description

Retrieves user interface setting value based on setting name.

Related Functions

set_user_setting, delete_user_setting, get_all_user_settings, wp_user_settings, get_settings

Top Google Results

User discussions

wpseek mobile