WordPress at a glance

has_header_video() WP 1.0

Check whether a header video is set or not.

  • 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.


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



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

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