videopress_make_media_upload_path

Get the upload api path.

Description

(string) videopress_make_media_upload_path( (int) $blog_id ); 

Returns (string)

Parameters (1)

0. $blog_id (int)
The id of the blog we're uploading to.

Usage

  1. if ( !function_exists( 'videopress_make_media_upload_path' ) ) { 
  2. require_once '/modules/videopress/utility-functions.php'; 
  3.  
  4. // The id of the blog we're uploading to. 
  5. $blog_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = videopress_make_media_upload_path($blog_id); 
  9.  

Defined (1)

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

/modules/videopress/utility-functions.php  
  1. function videopress_make_media_upload_path( $blog_id ) { 
  2. return sprintf( 
  3. 'https://public-api.wordpress.com/rest/v1.1/sites/%s/media/new',  
  4. $blog_id 
  5. );