has_header_video() WordPress Function
The has_header_video() function is used to determine whether a WordPress site has a header video. This function will return true if a header video is set, and false if not.
has_header_video() #
Checks whether a header video is set or not.
Description
See also
Return
(bool) Whether a header video is set or not.
Source
File: wp-includes/theme.php
function has_header_video() {
return (bool) get_header_video_url();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |