• Resolved budyaaa

    (@budyaaa)


    Hi !
    Couple of monthes ago I have noticed one issue with ACF Pro blocks here -> https://ww.wp.xz.cn/support/topic/problem-with-acf-pro/

    Issue still persist and to fix it I need to override default plugin’s functions with my custom, what is not great way to do such fixes. This issue related to this function wpm_translate_string on line 86 in this file include/wpm-translation-functions.php it’s stripping away ACF block and display it as a plain text wrapped in p tag, so to fix it I have added such check:

    if ( str_contains( $string, '<!-- wp:acf/' ) ) {
    return $string;
    }

    To skip ACF blocks and let them display properly

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.