Switch to edd_get_file_extension()