• Resolved smunk

    (@smunk)


    Hi, I’m using the php below to translate the sublabels to Danish, hovwever, I’m not sure what the field name is for the Confirm email sublabel. It would be great if you could tell me, or even direct me to a page with all the names of the fields 🙂
    Thanks, Soren.

    function wpf_dev_name_field_properties( $properties, $field, $form_data ) {

    // Change sublabel values
    $properties[‘inputs’][‘first’][‘sublabel’][‘value’] = ‘Fornavn’;
    $properties[‘inputs’][‘last’][‘sublabel’][‘value’] = ‘Efternavn’;
    $properties[‘inputs’][‘???’][‘sublabel’][‘value’] = ‘Bekræft din email adresse’;
    return $properties;
    }
    add_filter( ‘wpforms_field_properties_name’ , ‘wpf_dev_name_field_properties’, 10, 3 );

Viewing 1 replies (of 1 total)
  • Plugin Support Ethan Choi

    (@ethanchoi)

    Hi Soren,

    To modify the email fields sublabel you need the following custom code:

    /**
     * Change Email and Confirm Email sublabels in WPForms
     *
     */
    function wpf_dev_email_properties( $properties, $field, $form_data ) {
        
        $properties['inputs']['primary']['sublabel']['value'] = 'Enter your email';
        $properties['inputs']['secondary']['sublabel']['value'] = 'Confirm your email';
    
        return $properties;
    }
    add_filter( 'wpforms_field_properties_email', 'wpf_dev_email_properties', 10, 5 );
    
    

    I hope this helps 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Change confirm email sublabel’ is closed to new replies.