videopress_build_url

Get the direct url to the video.

Description

(string) videopress_build_url( (string) $guid ); 

Returns (string)

Parameters (1)

0. $guid (string)
The guid.

Usage

  1. if ( !function_exists( 'videopress_build_url' ) ) { 
  2. require_once '/modules/videopress/utility-functions.php'; 
  3.  
  4. // The guid. 
  5. $guid = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = videopress_build_url($guid); 
  9.  

Defined (1)

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

/modules/videopress/utility-functions.php  
  1. function videopress_build_url( $guid ) { 
  2.  
  3. // No guid, no videopress url. 
  4. if ( ! $guid ) { 
  5. return ''; 
  6.  
  7. return 'https://videopress.com/v/' . $guid;