get_background_color

函式
get_background_color ( No parameters )
返回值
  • (string)
定義位置
相關方法
background_colorget_background_image_custom_background_cbbackground_imageget_header_textcolor
引入
3.0.0
棄用
-

get_background_color: 這個函式返回主題的背景顏色,在主題的自定義設定中定義。它不接受任何引數。

檢索自定義背景顏色的值。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_background_color() {
return get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) );
}
function get_background_color() { return get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) ); }
function get_background_color() {
	return get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) );
}

常見問題

FAQs
檢視更多 >