WordPress开发者和主题制作者的搜索引擎



is_header_video_active ›

Since4.7.0
已弃用n/a
apply_filters( 'is_header_video_active', $show_video )
参数:
  • (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()`.
    Required: Yes
定义在:
文档:

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





源码

return apply_filters( 'is_header_video_active', $show_video );