is_header_video_active filter-hook . WP 4.7.0
Filters whether the custom header video is eligible to show on the current page.
Usage
add_filter( 'is_header_video_active', 'filter_function_name_304' ); function filter_function_name_304( $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
wp-includes/theme.php 1657
return apply_filters( 'is_header_video_active', $show_video );