Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are working on a site under development and trying to translate custom Ninja Form fields using WPML, but you couldn't find any documentation on how to do this.
Solution:
We have resolved this issue in the latest version of the plugin. Please ensure that you update your plugins. After updating, use the following filter to set the configuration for Ninja Forms:

add_filter( 'wpml_forms_config_ninja-forms', function ( array $config ): array {
	$config['settings']['my-custom-field'] = [
		'type'       => 'ARRAY',
		'properties' => 'f_label'
	];

	return $config;
} );

This code snippet should help you configure the translation settings for your custom fields in Ninja Forms.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still face issues, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 6 replies, has 0 voices.

Last updated by Shekhar Bhandari 1 month ago.

Assisted by: Shekhar Bhandari.

Author Posts
July 10, 2025 at 7:49 am #17222259

Ionut

Background of the issue:
I am working on a site under development and trying to translate custom Ninja Form fields using WPML.

Symptoms:
I didn't find any documentation on how to translate custom Ninja Form fields.

Questions:
How can I translate custom Ninja Form fields using WPML?

July 10, 2025 at 8:40 am #17222486

Ionut

A bit more context:

If i edit `wp-content/plugins/wpml-ninja-forms/wpml-forms-config.xml` and add my own stuff, it works

[code]
<forms>
<form name="ninja-forms">
<property type="ARRAY" properties="f_label">my-custom-field</property>
[/code]

But this is not very future proof.

July 10, 2025 at 9:59 am #17222912

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you please copy the wpml-forms-config.xml to your root folder of custom plugin and check if this helps?

Thanks

July 13, 2025 at 7:21 pm #17231363

Ionut

@Shekhar Bhandari: `wpml-forms-config` is not loaded automatically, it's only loaded by the nf wpml plugin:

$config_helper->getXmlArray( dirname( $this->pluginFilePath ) . 'https://cdn.wpml.org/wpml-forms-config.xml' );

There is no logic within code that will load the file when stored in a different place

July 14, 2025 at 4:26 am #17231586

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I will pass this info to our 2nd tier supporters.

Thanks

November 19, 2025 at 5:28 am #17589952

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Sorry for the late reply.

The issue is now escalated to our developers.

I will update you as soon as I will receive any feedback from them.

Thanks

April 7, 2026 at 11:45 am #17953989

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The issue has been fixed in the latest version of the plugin, please update the plugins and use the following filter to set the configuration for ninja forms

add_filter( 'wpml_forms_config_ninja-forms', function ( array $config ): array {
	$config['settings']['my-custom-field'] = [
		'type'       => 'ARRAY',
		'properties' => 'f_label'
	];

	return $config;
} );

Let me know if this helps.

Thanks