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



wp_video_embed_handler ›

Since3.6.0
已弃用n/a
apply_filters( 'wp_video_embed_handler', 'wp_embed_handler_video' )
参数:
  • (callable) $handler Video embed handler callback function.
    Required: Yes
定义在:
文档:

Filters the video embed handler callback.





源码

wp_embed_register_handler( 'video', '#^https?://.+?\.(' . join( '|', wp_get_video_extensions() ) . ')$#i', apply_filters( 'wp_video_embed_handler', 'wp_embed_handler_video' ), 9999 );