wpseek.com
WordPress开发者和主题制作者的搜索引擎



has_custom_header › WordPress Function

Since4.7.0
已弃用n/a
has_custom_header ( 没有参数 )
返回:
  • (bool) True if a custom header is set. False if not.
定义在:
文档:

Checks whether a custom header is set or not.



源码

function has_custom_header() {
	if ( has_header_image() || ( has_header_video() && is_header_video_active() ) ) {
		return true;
	}

	return false;
}