WordPress at Your Fingertips

has_header_video() WP 1.0

Check whether a header video is set or not.

1 time — 0.000058 sec (very fast) | 50000 times — 0.70 sec (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();

Notes

Changelog

Since 4.7.0 Introduced.

Code of has_header_video() WP 5.8.1

function has_header_video() {
	return (bool) get_header_video_url();
}

custom_header (theme options: video color image)

Other Theme Functions

No comments
    Log In