Fix wpml profile language slug

This commit is contained in:
Champ Camba
2017-12-12 18:36:29 +08:00
parent 0f79100d4c
commit 18dc885ac0
+1 -1
View File
@@ -48,7 +48,7 @@ function um_core_page_wpml_permalink( $array ){
$permalink_base = um_get_option('permalink_base');
// Get user slug
$profile_slug = get_user_meta( um_profile_id(), "um_user_profile_url_slug_{$permalink_base}", true );
$profile_slug = strtolower( get_user_meta( um_profile_id(), "um_user_profile_url_slug_{$permalink_base}", true ) );
$current_language = ICL_LANGUAGE_CODE;
foreach ( $array as $lang_code => $arr ) {
$sitepress->switch_lang( $lang_code );