And, going off of the above, now that I’m thinking about it…is there a way currently for me to write a script that will just iterate through ALL the files so I can change the contributors array if it’s empty? I see a lot of things like below where it’s all being set, but I’m not sure how to view the settings of ALL files
array_push($mdocs, array(
'id'=>(string)$upload['attachment_id'],
'parent'=>(string)$upload['parent_id'],
'filename'=>$upload['filename'],
'name'=>$_POST['mdocs']['name'][$index],
'desc'=>'',
'type'=>$mdocs_fle_type,
'cat'=>$_POST['mdocs']['cat'][$index],
'owner'=>$current_user->user_login,
'contributors'=>array(),
'size'=>(string)$file['size'],
'modified'=>(string)time()+MDOCS_TIME_OFFSET,
'version'=>(string)$_POST['mdocs']['version'][$index],
'show_social'=>(string)'on',
'non_members'=> (string)'on',
'file_status'=>(string)'public',
'post_status'=> (string)'publish',
'post_status_sys'=> (string)'publish',
'doc_preview'=>(string)'',
'downloads'=>(string)0,
'archived'=>array(),
'ratings'=>array(),
'rating'=>0,
'box-view-id' => $boxview_file['id'],
));