On this page
has_header_video(): bool
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. View all references
function has_header_video() {
return (bool) get_header_video_url();
}
Related
Uses
| Uses | Description |
|---|---|
| get_header_video_url() wp-includes/theme.php | Retrieves header video URL for custom header. |
Used By
| Used By | Description |
|---|---|
| get_media_states() wp-admin/includes/template.php | Retrieves an array of media states from an attachment. |
| the_custom_header_markup() wp-includes/theme.php | Prints the markup for a custom header. |
| has_custom_header() wp-includes/theme.php | Checks whether a custom header is set or not. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/has_header_video