• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Router Step Help WP & Learndash Integration

Jeff

Member
I am trying to build an automation that will create a Wordpress user with a special custom role and enroll the customer in some Learndash courses. The purchase goes through in Thrivecart but the user was not added and therefore no one is enrolled in the courses. Previously when I wasn't using the router, the user was created with the custom fields but now it has stopped working since I implemented the router. I am using the router because I have two products and the workflow will have to change a bit based on which product is purchased. Please help me figure out why the router related steps are not working. I have included the url to the workflow below.

 
P

Pabblymember11

Guest
Hey @Jeff

We looked into your workflow and it seems like you haven't corrected the credentials of as we mentioned before. And that's why your users were not created in WordPress.

Although we have corrected the credentials ( Base URL ) and now it is working properly. Now please try again by mapping the values as per your concern -

2021-08-04_12h11_54.png


Moreover, we have corrected Learndash's Action steps in your router module. And it also seems like you haven't captured the webhook response of ThriveCart Trigger. Kindly capture it again and remap the values in the WordPress Action Step.
 

Jeff

Member
Hey @Jeff

We looked into your workflow and it seems like you haven't corrected the credentials of as we mentioned before. And that's why your users were not created in WordPress.

Although we have corrected the credentials ( Base URL ) and now it is working properly. Now please try again by mapping the values as per your concern -

View attachment 2601

Moreover, we have corrected Learndash's Action steps in your router module. And it also seems like you haven't captured the webhook response of ThriveCart Trigger. Kindly capture it again and remap the values in the WordPress Action Step.
I noticed you added the Search WP User action for the Learndash module before the courses are added. I checked the other side of the router. After testing it, I see that is works without this step (Search WP User). Is this needed (and if so, why) when the courses can be added without this step?
 
P

Pabblymember11

Guest
Hey @Jeff

No, you don't need to use Search WP user, it was just to test the WP in your workflow you can remove it as per your concern.
 

Jeff

Member
@Pabbly Team, does the Register New User action use the standard Wordpress user_register hook? I'm wondering if I could use the Register New User actions instead of the Create User action but it has to use the standard Wordpress user_register hook to work with my password policy plugin. Please let me know. Any thoughts @Supreme Verma
 
Last edited:
P

Pabblymember11

Guest
Hey @Jeff
does the Register New User action use the standard Wordpress user_register hook?
Yes, WordPress uses the standard user_regisser hook.
I'm wondering if I could use the Register New User actions instead of the Create User action
We crossed checked the possibility of this but unfortunately, we couldn't find any API for registering a new user in the WordPress documentation.

Further, as per WordPress API docs, there is only Create User API which uses the rest_insert_user hook.

For reference please check the API documentation here - https://developer.wordpress.org/reference/hooks/rest_insert_user/
 
Last edited by a moderator:
Top