get_background_image

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

get_background_image: 這個函式返回主題的背景圖片,如主題的自定義設定中所定義。它不接受任何引數。

檢索自定義背景的背景圖片。

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

常見問題

FAQs
檢視更多 >