has_header_image() WP 1.0
Check whether a header image is set or not.
Basis of: has_custom_header()
No Hooks.
Return
true/false. Whether a header image is set or not.
Usage
has_header_image();
Notes
- See: get_header_image()
Changelog
Since 4.2.0 | Introduced. |
Code of has_header_image() has header image WP 5.6
function has_header_image() {
return (bool) get_header_image();
}Related Functions
From tag: Theme supports (theme_support)
More from tag: custom_header (theme options: video color image)
More from category: Other Theme Functions
- bloginfo()
- body_class()
- get_custom_logo()
- get_page_templates()
- get_post_class()
- get_query_template()
- get_stylesheet()
- get_template()
- get_theme_mod()
- get_theme_mods()
- get_theme_root()
- has_custom_logo()
- is_child_theme()