Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
542 B
4
Indexable
Never
<?php

add_filter( 'woocommerce_checkout_fields', function ( $fields ) {

    $fields['billing']['billing_country'] = [
        'type'         => 'country',
        'label'        => 'کشور / منطقه',
        'required'     => true,
        'class'        =>
            [
                0 => 'form-row-wide',
                1 => 'address-field',
                2 => 'update_totals_on_change',
            ],
        'autocomplete' => 'country',
        'priority'     => 40,
    ];

    return $fields;
}, 100 );