has_custom_header()

最后更新于:2021-11-27 04:44:32

has_custom_header()

Checks whether a custom header is set or not.

响应

(bool) True if a custom header is set. False if not.

源文件

文件: gc-includes/theme.php

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

	return false;
}