User Guide and Documentation

modifyPrivacyProtection() - Whois Protection Status UpdateRelease Date: 2019/07/30

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)

Copyright © 2019. All rights reserved.
Top