jetpack_responsive_videos_oembed_videos

OEmbed Video Providers.

Description

apply_filters( 'jetpack_responsive_videos_oembed_videos', (callback) $var ); 

A whitelist of oEmbed video provider Regex patterns to check against before wrapping the output.

Parameters (1)

0. $var (callback) => array( 'https?://((m|www)\.)?youtube\.com/watch', 'https?://((m|www)\.)?youtube\.com/playlist', 'https?://youtu\.be/', 'https?://(.+\.)?vimeo\.com/', 'https?://(www\.)?dailymotion\.com/', 'https?://dai.ly/', 'https?://(www\.)?hulu\.com/watch/', 'https?://wordpress.tv/', 'https?://(www\.)?funnyordie\.com/videos/', 'https?://vine.co/v/', 'https?://(www\.)?collegehumor\.com/video/', 'https?://(www\.|embed\.)?ted\.com/talks/' )
OEmbed video provider Regex patterns.

Usage

To run the hook, copy the example below.
  1. $var = apply_filters( 'jetpack_responsive_videos_oembed_videos', $var ); 
  2.  
  3. if ( !empty( $var ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the jetpack_responsive_videos_oembed_videos callback 
  2. function filter_jetpack_responsive_videos_oembed_videos( $var ) { 
  3. // make filter magic happen here... 
  4. return $var
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'jetpack_responsive_videos_oembed_videos', 'filter_jetpack_responsive_videos_oembed_videos', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'jetpack_responsive_videos_oembed_videos', 'filter_jetpack_responsive_videos_oembed_videos', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/modules/theme-tools/responsive-videos.php  
  1. $video_patterns = apply_filters( 'jetpack_responsive_videos_oembed_videos', array(