Replies: 0
You can bring this up to date (your field definition no longer matches Woo’s) and future-proof it somewhat if you just use a filter instead:
add_filter(
'option_woocommerce_checkout_phone_field'
, function($option) {
return 'required';
}
);