soundcloud_url_has_tracklist

Decide if a url has a tracklist.

Description

({boolean}) soundcloud_url_has_tracklist( ({string}) $url ); 

Returns ({boolean})

Parameters (1)

0. $url ({string})
The url.

Usage

  1. if ( !function_exists( 'soundcloud_url_has_tracklist' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/soundcloud.php'; 
  3.  
  4. // The url. 
  5. $url = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = soundcloud_url_has_tracklist($url); 
  9.  

Defined (1)

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

/modules/shortcodes/soundcloud.php  
  1. function soundcloud_url_has_tracklist( $url ) { 
  2. return preg_match( '/^(.+?)\/(sets|groups|playlists)\/(.+?)$/', $url );