video

The WordPress Core video shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[video]'); 
  1. // variable usage 
  2. $result = do_shortcode('[video]'); 
  3. echo $result;  

Defined (1)

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

/wp-includes/media.php  
  1. /* @param int $post_id Post ID. 
  2. * @param string $library Media library used for the video shortcode. 
  3. */ 
  4. return apply_filters( 'wp_video_shortcode', $output, $atts, $video, $post_id, $library ); 
  5. add_shortcode( 'video', 'wp_video_shortcode' ); 
  6.  
  7. /** 
  8. * Displays previous image link that has the same post parent. 
  9. * @since 2.5.0