Home > Blockchain >  I want to Remove "through Cashback" text in Terawallet - for WooCommerce Plugin In WordPre
I want to Remove "through Cashback" text in Terawallet - for WooCommerce Plugin In WordPre

Time:01-21

enter image description here

I want to Remove "through Cashback" text in every place of my website . I am using to get this cashback text from Terawallet-Woocommerce plugin . Can everyone suggest me a suitable solutions for my problem .

CodePudding user response:

    function woo_wallet_strings($translation, $text, $domain) {

        $search_string = 'through cashback';
        if (strpos($translation, $search_string) !== false) {

            $translation = str_replace($search_string, '', $translation);
        }
        return $translation;
    }

    add_filter('gettext_woo-wallet', 'woo_wallet_strings', 20, 3);

Use gettext_{$domain} hook for this. See the doc here

  • Related