has_header_video
Check whether a header video is set or not.
Description
has_header_video();
Usage
if ( !function_exists( 'has_header_video' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // NOTICE! Understand what this does before running. $result = has_header_video();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.php
- function has_header_video() {
- return (bool) get_header_video_url();
- }