Viewing 1 replies (of 1 total)
  • Plugin Author WP User Manager

    (@wpusermanager)

    Hi @yavimatuzalem those field name strings aren’t stored in the plugin’s code so Loco Translate doesn’t pick them up.

    You would need to use a filter eg.

    <?php
    
    add_filter( 'wpum_get_field_name', function ( $name, $id ) {
    	if ( 'Email' === $name ) {
    		return 'My translated email field name';
    	} else if ( 'Nickname' === $name ) {
    		return 'My translated nickname field name';
    	}
    
    	return $name;
    }, 10, 2 );
    
    add_filter( 'wpum_get_field_group_name', function ( $name, $id ) {
    	if ( 'Primary fields' === $name ) {
    		return 'My translated Group name';
    	}
    
    	return $name;
    }, 10, 2 );
Viewing 1 replies (of 1 total)
  • The topic ‘Can’t translate some fields in profile’ is closed to new replies.