A WordPress-centric search engine for devs and theme authors



has_custom_header ›

Since4.7.0
Deprecatedn/a
has_custom_header ( No parameters )
Returns:
  • (bool) True if a custom header is set. False if not.
Defined at:
Codex:

Check whether a custom header is set or not.



Source

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

	return false;
}