检索自定义背景颜色的值。
原型
get_background_color()
返回值
(string)
源文件
路径:wp-includes/theme.php
<?php
...
function get_background_color() {
return get_theme_mod('background_color', get_theme_support( 'custom-background', 'default-color' ) );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/get_background_color/