Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memberful LearnDash integration - dripping functionality #221

Open
Lauren-Memberful opened this issue Feb 7, 2018 · 5 comments
Open

Memberful LearnDash integration - dripping functionality #221

Lauren-Memberful opened this issue Feb 7, 2018 · 5 comments

Comments

@Lauren-Memberful
Copy link

We want to be able use the LearnDash drip functionality with our Memberful integration - without having to manually enrol paid members into the course through the WordPress site.

Ideally, when a user purchases access to a course built with LearnDash through Memberful, their user ID would be automatically added in to the Course access list field.

course-access-list

This would allow us to use the dripping functionality that LearnDash offers (i.e. Make Lesson visible x days after sign-up).

drip-options

If/when the member's subscription expires, they would be automatically removed from the course access list.

@LiamBailey
Copy link
Contributor

@mrhead Could you point me in the direction of a webhook or something that fires in the WP plugin that I can access when a new signup happens, and add the user onto the access list of any according courses?

@mrhead
Copy link
Contributor

mrhead commented Feb 12, 2018

@LiamBailey We process webhooks in src/endpoints/webhook.php, but basically most of them just synchronize members with memberful_wp_sync_member_from_memberful() which downloads member details via API and then sync the member.

Please check it and let me know if you need further explanation.

@LiamBailey
Copy link
Contributor

LiamBailey commented Feb 13, 2018

OK @mrhead so for this I am thinking I trigger a background process (https://github.com/A5hleyRich/wp-background-processing) if a user has signed up or upgraded. The background process would take the posts they now have access to grab all the Learndash courses from that and then cycle through them adding the user into the Course Access List - a background process could be seen as extreme but on larger sites this could be quite an operation. If LD course_access_list was a single meta field we could have just done a mysql query to insert the user ids into the meta table but it is part of a metadata array so this option is off the table unless you are very very very good at REGEX :-)

@dstrojny
Copy link
Contributor

@LiamBailey We're going to hold off on this for right now. Will ping you when we want to pick it back up.

@Lauren-Memberful
Copy link
Author

@LiamBailey Hey there! We're looking to pick this up again and offer it directly to you via Codeable if you're interested. Do you still have access to a LearnDash license?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants