函数原型
get_settings( string $option ): string
函数描述
Get value based on option.
是否弃用
Warning: This function has been deprecated. Use get_option() instead.
函数参数
-
$option
string
Required
函数返回值
string
函数位置
File: wp-includes/deprecated.php.
函数源码
function get_settings($option) {
_deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' );
return get_option($option);
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.1.0 | Use get_option() |
| 0.71 | Introduced. |

