is_header_video_active хук-фильтр . WP 4.7.0
Modify whether the custom header video is eligible to show on the current page.
Использование
add_filter( 'is_header_video_active', 'filter_function_name_7488' ); function filter_function_name_7488( $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
'svideo-active-callback
. If no callback is set, the default value is that ofis_front_page()
.
Список изменений
С версии 4.7.0 | Введена. |
Где вызывается хук
is_header_video_active
wp-includes/theme.php 1551
return apply_filters( 'is_header_video_active', $show_video );