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函数返回一个布尔值,如果当前主题支持自定义头像,则为真,否则为假: 这个函数通常用于确定是否显示一个界面让用户上传或更改自定义的头像。

检查是否设置了标题图片。

function has_header_image() {
	return (bool) get_header_image();
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 14:32:54

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: