函数原型
get_background_color(): string
函数描述
Retrieves value for custom background color.
是否弃用
未弃用
函数参数
无
函数返回值
string
函数位置
File: wp-includes/theme.php.
函数源码
function get_background_color() {
return get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

