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
See also
Return
(bool) Whether a header image is set or not.
Source
File: wp-includes/theme.php
function has_header_image() {
return (bool) get_header_image();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |