PHP перевести URL WPML

 $translateUrl = apply_filters('wpml_permalink', $url); 
// return the translatation url, or the current one if not found.
ahmad-ali14