Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flayder/a9b0241fbcf75fd640d9f2562df79d26 to your computer and use it in GitHub Desktop.
Save flayder/a9b0241fbcf75fd640d9f2562df79d26 to your computer and use it in GitHub Desktop.
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