Untitled
webwizards
plain_text
a month ago
427 B
5
Indexable
add_filter('woocommerce_checkout_fields', function($fields) {
foreach ($fields['billing'] as $key => $field) {
$fields['billing'][$key]['custom_attributes']['readonly'] = 'readonly';
}
return $fields;
});
add_filter('woocommerce_billing_fields', function($fields) {
foreach ($fields as $key => $field) {
$fields[$key]['custom_attributes']['readonly'] = 'readonly';
}
return $fields;
});Editor is loading...
Leave a Comment