You are currently viewing Change woocommerce checkout form label and placeholder text

Change woocommerce checkout form label and placeholder text

Change woocommerce checkout forms label text and placeholder text. By using below code we can easily change label text and placeholder text.

//Change Checkout forms label and placeholder

add_filter( 'woocommerce_default_address_fields' , 'custom_override_default_address_fields' );

function custom_override_default_address_fields( $address_fields ) {
	$address_fields['address_1']['label'] = 'Address Line 1';
    $address_fields['address_1']['placeholder'] = '';
	
	$address_fields['address_2']['label'] = 'Address Line 2';
	$address_fields['address_2']['placeholder'] = ''; 
	
    return $address_fields;
}

Leave a Reply