here is the function wptc_attachment_get_settings