This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues with ACF field group labels still appearing in WPML > Translation Management despite using the define('ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', true); setting.
Solution:
The constant *ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS* just prevents new occurrences of ACF Field Groups listing for translation in WPML Translation Management Dashboard.
So we recommend adding the following code to your functions.php file, ensuring you take a full backup before making changes:
/**
* Exclude the ACF field group section on the Translation Management Dashboard.
*
* @see https://onthegosystems.myjetbrains.com/youtrack/issue/acfml-990
*/
add_filter( 'wpml_tm_dashboard_item_sections', function( $sections ) {
/** @var \WPML\UserInterface\Web\Core\Component\Dashboard\Application\ViewModel\ItemSection[] $sections */
return array_filter(
$sections,
function( $section ) {
return $section->getId() !== 'stringPackage/acf-field-group' && $section->getId() !== 'stringPackage/acf-options-page-labels';
}
);
} );
If this solution does not apply to your case, or if it becomes outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.
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.
This topic is split from https://wpml.org/forums/topic/acf-options-empty-in-other-languages/
This topic contains 2 replies, has 0 voices.
Last updated by 6 months, 2 weeks ago.
Assisted by: Bigul.
