is_header_video_active WordPress Filter Hook

The is_header_video_active Wordpress hook is a boolean value that allows you to check if a header video is currently active. This can be useful for conditionally loading header videos on specific pages or for debugging purposes.

apply_filters( 'is_header_video_active', bool $show_video ) #

Filters whether the custom header video is eligible to show on the current page.


Parameters

$show_video

(bool)Whether the custom header video should be shown. Returns the value of the theme setting for the custom-header's video-active-callback. If no callback is set, the default value is that of is_front_page().


Top ↑

Source

File: wp-includes/theme.php

View on Trac



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