Created
June 7, 2022 15:13
-
-
Save clifgriffin/d614c77e850f30b67beb07b22efc8c73 to your computer and use it in GitHub Desktop.
Change phone field label
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'woocommerce_default_address_fields', | |
function( $fields ) { | |
$fields['phone']['label'] = 'Mobile Phone'; | |
$fields['phone']['placeholder'] = 'Mobile Phone'; | |
return $fields; | |
}, 100000 + 100 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment