latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Automate export of member database to server

Home Forums Community Forum Automate export of member database to server

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 9 months ago.

Topic Author Topic
Posted: Sunday Mar 24th, 2013 at 5:28 pm #45600
David Elliott
Username: wrrr

I need to be able to export my S2Member Pro membership database to a file on my server (I want to be able to process the data and send out special notices). I already have programs that can process the CSV that is exported when I do this manually, but it requires that I do lots of steps manually.

Someone suggested that I find out the request that is issued when the Export button is pressed on the admin page and use wget to get the file. I’ve tried this (with the username and password as part of the URL) but I just get a redirect.

Is there an accepted way to do this? Ideally, I should be able to call a php script or shell script from cron and have the member data exported to a file on the server directly.

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Mar 26th, 2013 at 8:47 am #45736

Hi David.

No, the User Export tool doesn’t have an API for this. You’ll have to create your own hack to achieve this.

These may help:
s2member-pro/includes/classes/exports-in.inc.php
Knowledge Base » Remote User Status (Custom API)
http://adambrown.info/p/wp_hooks/hook/wp_loaded
http://codex.wordpress.org/Function_Reference/get_users
http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_s2member_custom_fields%28%29

Posted: Tuesday Mar 26th, 2013 at 11:36 am #45793
David Elliott
Username: wrrr

That’s too bad. Looking at the code,you guys could refactor things so that there would be an official API to extract the data into arrays, and then wrap that in a function that could format it as a csv and response header.

I know I’m not the only customer who needs this kind of thing.

Posted: Wednesday Mar 27th, 2013 at 9:03 am #45860

Thanks for the suggestion. I’m adding it to the feature requests list. :)

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.