Summery Summery
Retrieves user interface setting value based on setting name.
Syntax Syntax
Parameters Parameters
- $name
-
(Required) The name of the setting.
- $default
-
(Optional) default value to return when $name is not set.
Default value: false
Return Return
(mixed) the last saved user setting or the default value/false if it doesn't exist.
Source Source
File: wp-includes/option.php
$wpdb->prepare(
"DELETE a, b FROM {$wpdb->options} a, {$wpdb->options} b
WHERE a.option_name LIKE %s
AND a.option_name NOT LIKE %s
AND b.option_name = CONCAT( '_site_transient_timeout_', SUBSTRING( a.option_name, 17 ) )
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |