WordPress at a glance

has_header_video() WP 1.0

Check whether a header video is set or not.

Notes:

  • See: get_header_video_url()
Is the basis for: has_custom_header()
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.

Return

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

Usage

has_header_video();

Code of has_header_video: wp-includes/theme.php VER 4.9.8

<?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
    Hello, !     Log In . Register