Hello, I use “format value” to add some classes to user’s content.
add_filter('acf/format_value/type=wysiwyg', 'clean_table', 100, 3);
function clean_table( $value, $post_id, $field ) {
$value = str_replace('<table>', '<table class="table">', $value);
return $value;
}
It fired well for native content but not applied to translated one.
Is it a bug or I need some additional steps to apply it to translation?
I use ACF PRO 5.7.9 and WPML 4.1.3
UPD: The problem caused on woo product page. I have noticed that this happens when I use Extended editor for wpml translations. When I use native editor – all works fine.