تخطي إلى المحتوى تخطي إلى الشريط الجانبي

Open

Reported for: Gravity Forms Multilingual 1.8.5

Topic Tags: Compatibility

Overview of the issue

When you use the new International (formatted) phone field introduced in Gravity Forms 3.0 and set custom Country and Phone sublabels, those sublabels do not appear in the Translation Editor.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open your theme’s functions.php file.
  • Add the following code:
    // gfml-362 workaround (GF3 International formatted phone sub-labels) - remove to revert
    add_filter( 'gform_multilingual_field_keys', function ( $keys ) {
    	foreach ( array( 'countrySublabel', 'phoneSublabel' ) as $key ) {
    		if ( ! in_array( $key, $keys, true ) ) {
    			$keys[] = $key;
    		}
    	}
    	return $keys;
    } );
    

اترك ردًا

الرجاء البقاء في الموضوع واحترام الآخرين. إذا كنت بحاجة إلى مساعدة في مشكلات غير متعلقة بهذا المنشور، استخدم منتدى الدعم الخاص بنا لبدء محادثة أو تقديم تذكرة.

يمكنك استخدام هذه الوسوم:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>