Answers for "woocommerce change "Billing Details" text"

PHP
0

woocommerce change "Billing Details" text

function wc_billing_field_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
        case 'Billing details' :
            $translated_text = __( 'Billing Info', 'woocommerce' );
            break;
    }
    return $translated_text;
}
add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 );
Posted by: Guest on February-11-2021

Code answers related to "woocommerce change "Billing Details" text"

Browse Popular Code Answers by Language