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 網站中播放視訊檔案。

過濾視訊嵌入輸出。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'wp_embed_handler_video', $video, $attr, $url, $rawattr );
return apply_filters( 'wp_embed_handler_video', $video, $attr, $url, $rawattr );
return apply_filters( 'wp_embed_handler_video', $video, $attr, $url, $rawattr );

常見問題

FAQs
檢視更多 >