Skip to content

Instantly share code, notes, and snippets.

View juliebugmtl's full-sized avatar

Julie Martin juliebugmtl

View GitHub Profile
@juliebugmtl
juliebugmtl / change_street_address_label.php
Created December 12, 2021 20:06
Modify the default WooCommerce "Street address" label to something else.
<?php // only use if needed
function modify_street_address_field_label( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Street address' :
$translated_text = __( 'Enter your full street address', 'woocommerce' );
break;
}
return $translated_text;
}