Created
September 23, 2020 09:36
-
-
Save flayder/a9b0241fbcf75fd640d9f2562df79d26 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_admin_billing_fields', 'custom_woocommerce_billing_fields'); | |
function custom_woocommerce_billing_fields($fields) | |
{ | |
$fields['your-diapason-from'] = array( | |
'label' => "Ширина двери", | |
'placeholder' => "Введите ширину двери", | |
'required' => false, | |
'clear' => false, | |
'type' => 'number', | |
); | |
$fields['your-diapason-to'] = array( | |
'label' => "Высота двери", | |
'placeholder' => "Введите высоту двери", | |
'required' => false, | |
'clear' => false, | |
'type' => 'number', | |
); | |
$fields['your-text-message'] = array( | |
'label' => "Заметка покупателя", | |
'placeholder' => "Введите заметку покупателя", | |
'required' => false, | |
'clear' => false, | |
'type' => 'text', | |
); | |
$fields['heating'] = array( | |
'label' => "Источник тепла", | |
'placeholder' => "Введите источник тепла", | |
'required' => false, | |
'clear' => false, | |
'type' => 'text', | |
); | |
$fields['located'] = array( | |
'label' => "Расположение", | |
'placeholder' => "Введите расположение", | |
'required' => false, | |
'clear' => false, | |
'type' => 'text', | |
); | |
return $fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment