Select field values from function.php
-
i use select field in my checkout but it’s 200+ items and he is changed weekly
i rewrite it in function php
“add_filter(‘woocommerce_checkout_fields’, ‘custom_override_checkout_fields’);function custom_override_checkout_fields($fields) {
$arr=[“
many values”];$fields[‘billing’][‘billing_europost’] = array(
‘type’ => ‘select’,
‘required’ => true,
‘options’ => $arr,
‘class’ => array(‘form-row-wide’),
‘clear’ => true
);
in frontend its work, but if i check order details in wp-admin he dont load options and if i save order – metafields cleared, how i can load options from my function php and not from plugins field options
The topic ‘Select field values from function.php’ is closed to new replies.