WordPress at a glance

has_header_image() WP 1.0

Check whether a header image is set or not.

Возвращает

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

Использование

has_header_image();

Заметки

  • See: get_header_image()

Changelog

Since 4.2.0 Introduced.

Код has_header_image() WP 5.5.1

<?php
function has_header_image() {
	return (bool) get_header_image();
}

From tag: Theme supports (theme_support)

More from tag: custom_header (theme options: video color image)

More from category: Other Theme Functions

No comments
    Log In . Register