WooCommerce Rename Address & Checkout Fields

You know what i mean:

add_filter('woocommerce_default_address_fields', 'override_default_address_checkout_fields', 20, 1);
function override_default_address_checkout_fields( $address_fields ) {
$address_fields['first_name']['placeholder'] = 'Ad';
$address_fields['last_name']['placeholder'] = 'Soyad';
$address_fields['company']['placeholder'] = 'Firma Adı (isteğe bağlı)';
$address_fields['state']['placeholder'] = 'Stat';
//$address_fields['postcode']['placeholder'] = 'Postakodu';
$address_fields['city']['placeholder'] = 'İlçe';
return $address_fields;
}

add_filter( 'woocommerce_checkout_fields' , 'override_billing_checkout_fields', 20, 1 );
function override_billing_checkout_fields( $fields ) {
$fields['billing']['billing_first_name']['placeholder'] = 'Ad';
$fields['billing']['billing_last_name']['placeholder'] = 'Soyad';
$fields['billing']['billing_company']['placeholder'] = 'Firma Adı (isteğe bağlı)';
$fields['billing']['billing_phone']['placeholder'] = 'Telefon';
//$fields['billing']['billing_postcode']['placeholder'] = 'Postakodu';
$fields['billing']['billing_email']['placeholder'] = 'Email';
$fields['billing']['billing_city']['placeholder'] = 'İlçe';
$fields['billing']['billing_tc']['placeholder'] = 'TC Numarası (fatura için gereklidir)';
$fields['billing']['billing_vergi_dairesi']['placeholder'] = 'Vergi Dairesi (isteğe bağlı)';
$fields['billing']['billing_vergi_no']['placeholder'] = 'Vergi Numarası (firma ise)';
return $fields;
}

Written by Uğur

Leave a Reply

Your email address will not be published. Required fields are marked *