WPML
סטטוס
נפתר
דווח עבור
WPML Multilingual for BuddyPress and BuddyBoss 1.7.0
נפתר בגרסה
BuddyPress Multilingual 1.8.0
תוסף/ערכת עיצוב קשורים
BuddyBoss Platform
תגיות נושא
Compatibility

סקירה כללית של התקלה

אם אתה משתמש בתכונה Profile Types של BuddyBoss Platform, תבחין שתגיות סוג הפרופיל אינן מתורגמות בעמוד החברים או בפרופילים של חברים בודדים.

פתרון עוקף

אנא ודא שיש לך גיבוי אתר מלא של האתר שלך לפני שתמשיך.


  • פתח את הקובץ …/wp-content/plugins/buddyboss-platform/bp-members/bp-members-functions.php.

  • חפש את שורה 3941.

  • החלף:
    			if ( $type_obj = bp_get_member_type_object( $type ) ) {
    				$member_type = $type_obj->labels['singular_name'];
    			}

  • ב:
    			if ( $type_obj = bp_get_member_type_object( $type ) ) {                                        
    				$member_type = $type_obj->labels['singular_name'];                                              
    				$current_language = apply_filters( 'wpml_current_language', NULL );
    				$user_member_type = bp_get_member_type( $user_id );    
    				$post_id = bp_member_type_post_by_type( $user_member_type );                                        
    				$wpml_post_id = apply_filters( 'wpml_object_id', $post_id, 'bp-member-type', true, $current_language );
    				$wpml_post_meta = get_post_meta( $wpml_post_id, '_bp_member_type_label_singular_name', true );
    				$member_type = $wpml_post_meta;
    			}

כל התקלות הידועות →