Jump to content

Automatic Domain Register Failed (name is invalid)


fast

Recommended Posts

Hi dear friends,

 

dealer for ResellerClub. automated domain name registration error:

 

name is invalid ,  adress is invalid, etc...

 

This is because the character error. I want to hook. change the character registers while.

I have tried the following codes did not work. Why is that?

 


function hook_transliterate($string) {
   $string = str_replace("ž","z",$string);
   $string = str_replace("é","e",$string);
   return $string;
}

add_hook("PreDomainRegister",1,"hook_transliterate");

 

Please give me sample hook code?

 

Regards,

Sorry for my bad english.

Link to comment
Share on other sites

Hi,

 

You should use "Transliteration" and not "PreDomainRegister":

 

function hook_transliterate($string) {     
   $string = str_replace("ž","z",$string);     
   $string = str_replace("é","e",$string);
   return $string; 
}  
add_hook("Transliteration",1,"hook_transliterate");

 

Regards,

Marco

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