playlist

The WordPress Core playlist shortcode.


Usage

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

Defined (1)

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

/wp-includes/media.php  
  1. <script type="application/json" class="wp-playlist-script"><?php echo wp_json_encode( $data ) ?></script> 
  2. </div> 
  3. <?php 
  4. return ob_get_clean(); 
  5. add_shortcode( 'playlist', 'wp_playlist_shortcode' ); 
  6.  
  7. /** 
  8. * Provides a No-JS Flash fallback as a last resort for audio / video. 
  9. * @since 3.6.0