WordPress at a glance

has_header_video() WP 1.0

Check whether a header video is set or not.

Возвращает

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

Works based on: get_header_video_url()
1 time = 0.000058s = very fast | 50000 times = 0.70s = very fast | PHP 7.1.1, WP 4.7.1

No Hooks.

Usage

has_header_video();

Notes

  • See: get_header_video_url()

Список изменений

С версии 4.7.0 Введена.

Code of has_header_video() WP 5.5.1

wp-includes/theme.php
<?php
function has_header_video() {
	return (bool) get_header_video_url();
}

Related Functions

From tag: custom_header (theme options: video color image)

More from category: Other Theme Functions

No comments
    Log In . Register