add_music_cover_art

Add music cover art.

Description

add_music_cover_art( (array) $file_object, (object) $upload_obj ); 

Parameters (2)

0. $file_object (array)
The file object.
1. $upload_obj (object)
The upload obj.

Usage

  1. if ( !function_exists( 'add_music_cover_art' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'rtmedia-for-wordpress-buddypress-and-bbpress/app/main/controllers/template/rtmedia-actions.php'; 
  3.  
  4. // The file object. 
  5. $file_object = array(); 
  6.  
  7. // The upload obj. 
  8. $upload_obj = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = add_music_cover_art($file_object, $upload_obj); 
  12.  

Defined (1)

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

/app/main/controllers/template/rtmedia-actions.php  
  1. function add_music_cover_art( $file_object, $upload_obj ) { 
  2.  
  3. $media_obj = new RTMediaMedia(); 
  4. $media = $media_obj->model->get( array( 
  5. 'id' => $upload_obj->media_ids[0],  
  6. ) ); 
  7.