User Registration Hooks not Firing
-
Hi Guys,
Hopefully someone can help with a small issue I’m having as currently pulling my hair out!
I’m trying to setup WP-Affiliate and get it to register affiliates when they purchase a subscription through an Authnet Pro form. However, despite setting the option within the Affiliate plugin users are not being registered as affiliates when they subscribe to the blog.
I’ve tried adding a user to the blog through the Dashboard and that registers them as a affiliate fine. Just not when I use the pro form.
Upon doing some checking I can see that the function that adds them as an affiliate is attached to the ‘user_register’ hook. However, this does not seem to get fired when I register through the pro-form. I’ve proved this by attaching a custom function to the hook which generates a log message. This only gets called when registering via the dashboard, not the pro-form.
So, my question is two-fold. Firstly, is there a reason why the ‘user-register’ hook is not being called when using the pro-form? Secondly, this being the case is there another hook I can use to do the affiliate registration that will be called EVERY time a user registers on the site.
Many Thanks.
- The topic ‘User Registration Hooks not Firing’ is closed to new replies.