This topic contains 0 replies, has 1 voice. Last updated by SDN Admin 3 years, 1 month ago.
Topic Author | Topic |
---|---|
Posted: Monday Nov 11th, 2013 at 6:02 am #61000 | |
Hello Community, I have taken over a project that is totaly uncommented and very unstructured. The customer wants that corporate membership enters up to 4 users in the registration process (so 1 real s2member and 4 data informations). After successful payment the user will be returned to the page. Here I want to integrated an action hook that triggers if the user returns to the page after a successful payment and the user role was set to corporate membership. (After that my function gets the 4 data informations and creates 4 new accounts with the right capabilites) My function is already complete, but the problem is that it doesn’t trigger. I tried those hooks so far:
Here is my testhook to check up the hooks. Nothing happens.
My function is inside mu-plugins/s2hack_corporate_memberships.php I prefer to use set_user_role to get old and new user role for extended functions. Maybe you have any clue why my functions don’t trigger? Thank you in advance! Update*: Ok I’m now able to use set_user_role as hook after payment through paypal. It was the priority level ($priority). But after returning from the paypal site the get_user_field(’email_1′, $user_id); function does not return any data. Is this because the user has no data yet or because the function is no available at this time?
|