- This topic has 2 replies, 2 voices, and was last updated 12 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › eMember – Scheduled member export
I am looking for suggestions on how to do a daily export of the member data that includes unserialized custom field data. If it weren’t for the custom fields, I could do a cron job that runs a MySQL query. I was looking through the code, and I see the export function, I just don’t know how to call that from a cron job.
Thank you.
If you are a developer (it seems like you are) then you can investigate the “export_members_to_csv” function in the “wp_eMember1.php” file which does the export and then write your own function that does something similar and use that from your cron job.
More of a hacker… I haven’t done any serious development since the 90’s, to be honest. But, thank you for this. It put me on the right track.
And as an FYI, one thing I did notice about the export function is that it only exports the main membership level. If a member has multiple levels, they do not get exported. I added “more_membership_levels” to my hacked script (I didn’t do translation, I’m OK with just the index), but it might be a good idea to consider having this as a field in the main export function for a future update.
Again, thanks for the help!