/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
// 1. Blochează câmpurile din Adresa Implicită
add_filter( 'woocommerce_default_address_fields', 'sterge_campuri_adresa', 9999 );
function sterge_campuri_adresa( $fields ) {
    unset( $fields['postcode'] );
    unset( $fields['address_1'] );
    unset( $fields['address_2'] );
    return $fields;
}

// 2. Blochează câmpurile din Facturare (Dacă modulul le forțează aici)
add_filter( 'woocommerce_billing_fields', 'sterge_campuri_facturare', 9999 );
function sterge_campuri_facturare( $fields ) {
    unset( $fields['billing_postcode'] );
    unset( $fields['billing_address_1'] );
    unset( $fields['billing_address_2'] );
    return $fields;
}

// 3. Ascunde Notele de comandă
add_filter( 'woocommerce_enable_order_notes_field', '__return_false', 9999 );