public function ajax_get_attachment_s3_details()
{
if (!isset($_POST['id'])) {
return;
}
check_ajax_referer('get-attachment-s3-details', '_nonce');
$id = intval($_POST['id']);
// get the actions available for the attachment
$data = array('links' => $this->add_media_row_actions(array(), $id), 's3object' => $this->get_formatted_s3_info($id), 'acl_toggle' => $this->verify_media_actions());
wp_send_json_success($data);
}