Checks whether a header video is set or not.
Description
See also
Source
function has_header_video() {
return (bool) get_header_video_url();
}
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
| CARVIEW |
Checks whether a header video is set or not.
function has_header_video() {
return (bool) get_header_video_url();
}
| Uses | Description |
|---|---|
get_header_video_url()wp-includes/theme.php | Retrieves header video URL for custom header. |
| 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. |
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.