spotify

The WordPress Core spotify shortcode.


Usage

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

Defined (1)

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

/modules/shortcodes/spotify.php  
  1. /* Usage: 
  2. * [spotify id="spotify:track:4bz7uB4edifWKJXSDxwHcs" width="400" height="100"] 
  3. */ 
  4.  
  5. if ( ! shortcode_exists( 'spotify' ) ) { 
  6. add_shortcode( 'spotify', 'jetpack_spotify_shortcode' ); 
  7.  
  8. if ( get_option( 'embed_autourls' ) ) { 
  9. // If user enabled autourls, also convert syntax like spotify:track:4bz7uB4edifWKJXSDxwHcs 
  10. add_filter( 'the_content', 'jetpack_spotify_embed_ids', 7 );