Support

Account

Home Forums Bug Reports acf/format_value doesn't apply when show translated page [wpml]

Unread

acf/format_value doesn't apply when show translated page [wpml]

  • 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.

Viewing 1 post (of 1 total)

The topic ‘acf/format_value doesn't apply when show translated page [wpml]’ is closed to new replies.