Change “Billing Details” text to “Shipping Details” on Woocommerce checkout page
I currently have a bit of code in my child theme's functions.php file which is supposed to change "Billing Details" to say "Shipping Details" on my Woocommerce checkout page. However, when I updated to Woocommerce 3.0, the code snippet stopped working. Below is the code I was using. function wc_billing_field_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Billing Details' : $translated_text = __( 'Shipping Details', 'woocommerce' ); break; } return $translated_text; } add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 ); I would really like a code