Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
Created June 7, 2022 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clifgriffin/d614c77e850f30b67beb07b22efc8c73 to your computer and use it in GitHub Desktop.
Save clifgriffin/d614c77e850f30b67beb07b22efc8c73 to your computer and use it in GitHub Desktop.
Change phone field label
<?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