get_user_setting


get_user_setting ( $name, $default = false )

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

Description

Retrieve user interface setting value based on setting name.

Related Functions

set_user_setting, get_all_user_settings, delete_user_setting, wp_user_settings, get_settings

Top Google Results

User discussions

wpseek mobile