A WordPress-centric search engine for devs and theme authors



wp_video_embed_handler ›

Since3.6.0
Deprecatedn/a
apply_filters( 'wp_video_embed_handler', 'wp_embed_handler_video' )
Parameters:
  • (callable) $handler Video embed handler callback function.
    Required: Yes
Defined at:
Codex:

Filters the video embed handler callback.





Source

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