Jump to content

Actionhooks Variables changed in new version


a4atiph

Recommended Posts

Hi,

 

Just upgraded to New Version of WHMCS from v 3.8 and found that actionhooks.php not working properly after putting in correct directory (/includes/hooks/). I checked for help on forums but couldn't find information about variables so using a simple foreach loop, i got the variables of function. Here it is

 

function actionhook_ClientLogin($vars) {

# This function runs when a client logs in

# $vars["ClientID"] ClientID was the variable index in old version but changed in new version.

$show="";

foreach ($vars as $key => $value)

{

$show.= "$key => $value<br />\n";

}

mail('YOUR EMAIL','VARIABLE CHECK',$show);

}

add_hook("ClientLogin",0,"actionhook_ClientLogin","");

 

Hope it will help..Also suggestion for WHMCS team to upload document of changes for Decoded (Open for changes) files.

 

Thanks,

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