Jump to content

Action hook priority isn't working (or am I missing something)?


sufi

Recommended Posts

you get it wrong, each of ActionHook points run separately, the priority used to sort the functions of that should run on the exact same ActionHook point e.g if you created two functions to run when "ClientChangePassword" you can use the priority to tell WHMCS which function should run first

Link to comment
Share on other sites

Thanks for making it clear to me. It now makes sense.

 

The problem I am facing is actually when user data is updated from admin panel. If some admin updates (for example) email and password from the profile tab, then it triggers ClientChangePassword and ClientEdit hooks. ClientEdit hooks keep the old email, which I need to verify the password change. But unfortunately when ClientChangePassword triggers, it only returns userid and password string. Queering from DB, I can get the new email, but I need old email inside the function of ClientChangePassword.

Do you have any clue/suggestion on how can I get that?

 

you get it wrong, each of ActionHook points run separately, the priority used to sort the functions of that should run on the exact same ActionHook point e.g if you created two functions to run when "ClientChangePassword" you can use the priority to tell WHMCS which function should run first
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.

×
×
  • 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