jetpack_embed_to_shortcode

This action is documented in modules/shortcodes/youtube.php.

Description

do_action( 'jetpack_embed_to_shortcode', (string) $youtube, (string) $url ); 

Parameters (2)

0. $youtube (string) => 'youtube'
Youtube Shortcode name.
1. $url (string)
YouTube video URL.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'jetpack_embed_to_shortcode', $youtube, $url ); 
The following example is for adding a hook callback.
  1. // define the jetpack_embed_to_shortcode callback 
  2. function action_jetpack_embed_to_shortcode( $youtube, $url ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'jetpack_embed_to_shortcode', 'action_jetpack_embed_to_shortcode', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'jetpack_embed_to_shortcode', 'action_jetpack_embed_to_shortcode', 10, 2 ); 

Defined (8)

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

/modules/shortcodes/youtube.php  
  1. do_action( 'jetpack_embed_to_shortcode', 'youtube', $url ); 
/modules/shortcodes/soundcloud.php  
  1. do_action( 'jetpack_embed_to_shortcode', 'soundcloud', $url_matches[0] ); 
/modules/shortcodes/polldaddy.php  
  1. do_action( 'jetpack_embed_to_shortcode', 'polldaddy', $id ); 
/modules/shortcodes/instagram.php  
  1. do_action( 'jetpack_embed_to_shortcode', 'instagram', $url ); 
/modules/shortcodes/googlemaps.php  
  1. do_action( 'jetpack_embed_to_shortcode', 'googlemaps', $url ); 
/modules/shortcodes/flickr.php  
  1. do_action( 'jetpack_embed_to_shortcode', 'flickr_video', $flashvars['photo_id'] ); 
/modules/shortcodes/dailymotion.php  
  1. do_action( 'jetpack_embed_to_shortcode', 'dailymotion', $id ); 
  1. do_action( 'jetpack_embed_to_shortcode', 'dailymotion', $url );