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

Top ↑

See also


Top ↑

Return

(bool) Whether a header video is set or not.


Top ↑

Source

File: wp-includes/theme.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More