• Resolved arenis91

    (@arenis91)


    Hi,

    i have hunderts of ids like tmcp_textfield_4d8sa7d498as
    i want exclude them from translation can i do it with #tmcp_textfield_* ?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    You can use the following custom code that excludes strings with an identical pattern:

    add_filter('trp_skip_strings_containing_key_terms', 'trpc_exclude_strings_containing_certain_key_words' );
    function trpc_exclude_strings_containing_certain_key_words($array){
        $array[] = array(
            'terms'=> array( 'tmcp_textfield_' ),
            'operator' => 'or'
        );
        return $array;
    }
    • Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality

    You can modify this code at any time by adding any pattern of the strings you wish to exclude from translation.

    You can add the custom code first on a staging site to check how it works for you.

    Let me know how this goes.

    Kind Regards,

    Anca

    Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    Hello there,

    Since 5 days have already passed without getting a respond from you,I consider this ticket as solved and I will mark it as “Resolved”.

    Have a great day!

    Kind Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude selectors from translation with *’ is closed to new replies.