is_header_video_active filter-hookWP 4.7.0

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

Usage

add_filter( 'is_header_video_active', 'wp_kama_is_header_video_active_filter' );

/**
 * Function for `is_header_video_active` filter-hook.
 * 
 * @param bool $show_video 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()`.
 *
 * @return bool
 */
function wp_kama_is_header_video_active_filter( $show_video ){

	// filter...
	return $show_video;
}
$show_video(true|false)
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().

Changelog

Since 4.7.0 Introduced.

Where the hook is called

is_header_video_active()
is_header_video_active
wp-includes/theme.php 1784
return apply_filters( 'is_header_video_active', $show_video );

Where the hook is used in WordPress

Usage not found.