I'm writing a user import plugin for the Membership plugin that is based off of the user CSV import plugin. I would like to know if you could provide a couple of lines of code that will show me which Membership plugin files to include and functions to use that will allow creation of a subscription if I have this data:
Complete WP User record
PayPal Profile ID
Last Payment Date
I'm guessing something like this, but not sure:
//load Membership classes
//check if user already has a Membership subscription
//if not create a new subscription using data from loaded User object and csv field data.