has_header_image() WordPress Function

The has_header_image() function checks whether a header image has been set for the current theme. If a header image has been set, the function returns true. Otherwise, the function returns false.

has_header_image() #

Checks whether a header image is set or not.


Description

Top ↑

See also


Top ↑

Return

(bool) Whether a header image is set or not.


Top ↑

Source

File: wp-includes/theme.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More