has_custom_header(): bool

Checks whether a custom header is set or not.


Return

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


Top ↑

Source

File: wp-includes/theme.php. View all references

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

	return false;
}


Top ↑

Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.