Jump to content

How to Disable Automatic CC Processing by default?


sonuyos

Recommended Posts

So I want to Disable Automatic CC Processing by default,

 

How can I do that?

 

I did add a hook for it, but am not sure if it is working or not, How can i test it?

 

/includes/hook/disablecc.php

 

Got it from here - http://forum.whmcs.com/showthread.php?86486-Disable-Automatic-CC-Processing-by-default&p=385671#post385671

 

<?php

function hook_disable_auto_cc($vars) {

$command = "updateclient";
$adminuser = "admin";
$values["clientid"] = $vars['userid'];
$values["disableautocc"] = true;

$results = localAPI($command,$values,$adminuser);


}

add_hook("ClientAdd",1,"hook_disable_auto_cc");

?>

Link to comment
Share on other sites

  • 4 months later...

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