fast Posted August 17, 2013 Share Posted August 17, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
imaticon Posted August 18, 2013 Share Posted August 18, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.