Woocommerce结算页标题修改
//Change the 'Billing details' checkout label to 'Contact Information'function wc_billing_field_strings( $translated_text, $text, $domain ) {switch ( $translated_text ) {case 'Billing details' :$translated_text = __( 'Contact Information', 'woocommerce'
//Change the 'Billing details' checkout label to 'Contact Information' function wc_billing_field_strings( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Billing details' : $translated_text = __( 'Contact Information', 'woocommerce' ); break; } return $translated_text; } add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 );
此为修改结算页中的Billing details标题。