Joris Posted December 9, 2014 Share Posted December 9, 2014 Hello, I'm trying to make a hook for after a domain has been registered.The idea is some A records are created on a successful registration. The problem is, I need to know which fires first, the AfterModuleCreate hook or the AfterRegistrarRegistration, because I need some information from the module that the domain is coupled with. So, if an order is made with a hosting product coupled to a domain registration, is the hosting product created first, or the domain? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 9, 2014 Share Posted December 9, 2014 Hi AfterModuleCreate is for products/services meanwhile AfterRegistrarRegistration is for domains. You should use the second one. Anyway probably you could even use few more hook points to "push" A records. 0 Quote Link to comment Share on other sites More sharing options...
Joris Posted December 9, 2014 Author Share Posted December 9, 2014 Great, I'll do that. Thanks for the quick reply! 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted December 10, 2014 Share Posted December 10, 2014 So, if an order is made with a hosting product coupled to a domain registration, is the hosting product created first, or the domain? From a quick test it would appear to be processed *hosting *addon *domain - it also lists them in that sequence on the admin view of the order You'd need WHMCS to confirm _exactly) what it does, as it may simply be relying on 'no particular order' from the results of the queries on tblhosting/tbldomains or taking the ID into account - so YMMV 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.