Developer Center

modifyPrivacyProtection() - Whois Protection Status Update

Contact information for the domain name (WHOIS) is used to update the privacy status.

public function modifyPrivacyProtection($params=[],$staus=''){
    $domain     = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);

    $modify = $this->api->modify_whois_privacy($domain,$status == "enable" ? "true" : "false");
    if(!$modify){
        $this->error = $this->api->error;
        return false;
    }

    return true;
}

Parameters;

  • $params Provides the value of [options] index in the $order variable in the class.
  • $status information of the status to be updated, example: active (enabled), passive (disabled)

Retrieval Value;

Boolean (true or false)

purchasePrivacyProtection() - Buy Whois Protection getTransferLock() - Transfer Lock Status

Do you have any questions?

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