Jump to content

The order Action Hooks get called in


Joris

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated