Rename rtMedia Upload Directory

Add the following code in your theme’s functions.php file to rename the rtMedia upload directory.

function rename_rtmedia_upload_folder_name( $folder_name ) {
$folder_name = 'YourMedia';
return $folder_name;
}
add_filter( 'rtmedia_upload_folder_name', 'rename_rtmedia_upload_folder_name', 99, 1 );

Add the following code in your theme’s functions.php file to rename the /users/ folder in upload directory structure.

function rename_users_folder_name( $upload_dir, $uploaded ) {
    $upload_dir['path'] = str_replace('/users/', '/newname/', $upload_dir['path']);
    $upload_dir['url'] = str_replace('/users/', '/newname/', $upload_dir['url']);
    return $upload_dir;
}
add_filter('rtmedia_filter_upload_dir','rename_users_folder_name', 99, 2);