has_header_image

函式
has_header_image ( No parameters )
返回值
  • (bool) Whether a header image is set or not.
相關
  • get_header_image()
定義位置
相關方法
header_imageget_header_imagehas_header_videothe_header_image_tagis_random_header_image
引入
4.2.0
棄用
-

has_header_image函式返回一個布林值,如果當前主題支援自定義頭像,則為真,否則為假: 這個函式通常用於確定是否顯示一個介面讓使用者上傳或更改自定義的頭像。

檢查是否設定了標題圖片。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function has_header_image() {
return (bool) get_header_image();
}
function has_header_image() { return (bool) get_header_image(); }
function has_header_image() {
	return (bool) get_header_image();
}

常見問題

FAQs
檢視更多 >