wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_video_embed_handler › WordPress Filter Hooks

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?://.+?\.(' . implode( '|', wp_get_video_extensions() ) . ')$#i', apply_filters( 'wp_video_embed_handler', 'wp_embed_handler_video' ), 9999 );