/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/











add_filter( 'woocommerce_checkout_fields' , 'gkfashion_simplify_checkout_fields' );

function gkfashion_simplify_checkout_fields( $fields ) {
    // गैर-ज़रूरी फील्ड्स हटाएँ
    unset($fields['billing']['billing_last_name']);    // Last Name हटाया
    unset($fields['billing']['billing_company']);      // Company हटाया
    unset($fields['billing']['billing_address_2']);    // Address Line 2 हटाया
    unset($fields['order']['order_comments']);         // Order Notes हटाया

    // First Name को Full Name में बदलें और पूरी चौड़ाई दें
    $fields['billing']['billing_first_name']['label'] = 'Full Name';
    $fields['billing']['billing_first_name']['placeholder'] = 'Enter your full name';
    $fields['billing']['billing_first_name']['class'] = array('form-row-wide');

    return $fields;
}