wp_embed_handler_video

过滤钩子
apply_filters( 'wp_embed_handler_video', $video, $attr, $url, $rawattr )
参数
  • (string) $video Video embed output.
    Required:
  • (array) $attr An array of embed attributes.
    Required:
  • (string) $url The original URL that was matched by the regex.
    Required:
  • (array) $rawattr The original unmodified attributes.
    Required:
定义位置
相关勾子
wp_embed_handler_audiowp_embed_handler_youtubewp_audio_embed_handlerwp_video_embed_handlerembed_handler_html
相关方法
wp_embed_handler_videowp_embed_handler_googlevideowp_embed_handler_audiowp_embed_handler_youtubewp_oembed_add_providermedia_handle_sideload
引入
3.6.0
弃用
-

wp_embed_handler_video: 该函数用于处理 WordPress 中嵌入的视频文件。它可以将视频文件转换为 HTML5 播放器,以方便在 WordPress 网站中播放视频文件。

过滤视频嵌入输出。

return apply_filters( 'wp_embed_handler_video', $video, $attr, $url, $rawattr );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 11:36:30

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: