Background of the issue:
I need to translate the labels of my multiple-choice field, but it's not appearing in the string translations. I have tried some code, like this: add_action('gform_pre_render', 'register_multi_choice_strings_with_wpml'); add_action('gform_pre_validation', 'register_multi_choice_strings_with_wpml'); add_action('gform_admin_pre_render', 'register_multi_choice_strings_with_wpml'); function register_multi_choice_strings_with_wpml($form) { foreach ($form['fields'] as &$field) { if ($field->type === 'checkbox') { foreach ($field->choices as &$choice) { do_action('wpml_register_single_string', 'gravityforms', $choice['text'], $choice['text']); } } } return $form; } Link to a page where the issue can be seen: hidden link
Symptoms:
In the fourth page of our form, there's some multiple-choice checkboxes. We see them in French even though we are in English, because we don't see the translation inside of WPML.
Questions:
Why are the multiple-choice field labels not appearing in the string translations?
How can I ensure the labels are translated correctly in WPML?