Developer Center

Domain

Default Parameters

Sent parameters should be the same with order parameters.

DomainDelete

The domain name is called when it will be deleted from the client's account.

Return

Return value must be in array data type or void should return.

Hook::add("DomainDelete",1,function($params=[]){
   return ['error' => 'write something here...'];
});

DomainWhoisChange

It works when the whois information of the domain name will be changed.

The returning parameters are divided into two;

  1. In [order], there are order parameters.
  2. In [whois], there are whois parameters preferred to be changed

Return

Return value must be in array data type or void should return.

Hook::add("DomainWhoisChange",1,function($params=[]){
   $order = $params['order'];
   $whois = $params['whois'];
   return ['error' => 'write something here...'];
});

DomainWhoisChanged

Called after changing whois information of domain name.

Return

Not supported

DomainTransferCompleted

Called when domain name transfer is completed by the cron.

Return

Not supported

DomainTransferFailed

Called when domain name transfer is failed by the cron.

Return

Not supported

DomainQuestioning

Called when domain name availability query will be made.

Parameters

Name Description
sld Domain name tld. For example wisecp on wisecp.com
tld Domain name tld. For example, com in wisecp.com returns in array data type in bulk queries.
module Domain Name Registrar Module Name

Return

Return value must be in array data type or void should return.

It returns the array from the return value as the result value, if the return is void, it returns the default query result in the system.

Hook::add("DomainQuestioning",1,function($params=[]){
    /* return ['status' => 'unknown','message' => 'error message']; */
    /* return ['status' => 'unavailable']; */
    /*
    return [
        'status' => 'available',
        'premium' => true,
        'premium_price' => [
            'amount' => 1320,
            'currency' =>'USD'
        ],
    ];
    */
    return ['status' => "available"];
});

DomainRegister

Called when the domain name registration process is performed.

Return

Not supported

DomainTransfer

Called when domain name transfer process is made.

Return

Not supported

DomainRenewal

Called when domain name period is renewed.

Return

Not supported

PreRegistrarRegisterDomain

Domain name registration is called before the module registers.

Return

Return value must be in array data type or void should return.

Hook::add("PreRegistrarRegisterDomain",1,function($params=[]){
   return ['error' => 'write something here...'];
});

PreRegistrarTransferDomain

Domain name transfer is called before the module registers.

Return

Return value must be in array data type or void should return.

Hook::add("PreRegistrarTransferDomain",1,function($params=[]){
   return ['error' => 'write something here...'];
});

PreRegistrarRenewDomain

Domain name registration renewal is called before the module processes.

Return

Return value must be in array data type or void should return.

Hook::add("PreRegistrarRenewDomain",1,function($params=[]){
   return ['error' => 'write something here...'];
});
 
Addon Invoice

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top