WordPress at a glance

has_header_image() WP 1.0

Check whether a header image is set or not.

  • See: get_header_image()
Is the basis for: has_custom_header()

No Hooks.


true/false. Whether a header image is set or not.



Code of has header image: wp-includes/theme.php WP 5.2.2

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

No comments
    Hello, !     Log In . Register