Hi @casahova,
Yes. You can use the code snippet below to change the shipping phone field label and description.
/**
* Change shipping phone field label.
*/
function fluidcheckout_change_shipping_phone_label( $fields ) {
// Bail if shipping phone not available
if ( ! array_key_exists( 'shipping_phone', $fields ) ) { return $fields; }
$fields[ 'shipping_phone' ]['label'] = __( 'Contact phone', 'your-text-domain' );
// Uncomment the line below to change the field description
// $fields[ 'shipping_phone' ]['description'] = __( 'Your best phone number', 'your-text-domain' );
// Uncomment the line below to remove the field description
// $fields[ 'shipping_phone' ]['description'] = null;
return $fields;
}
add_filter( 'woocommerce_shipping_fields', 'fluidcheckout_change_shipping_phone_label', 10 );
If you are unsure about how to add the code snippet to your website, check our article:
How to safely add code snippets to your WooCommerce website
Best,
Diego