Optional and Required phone number in WooCommerce

Conditionally Required Checkout Phone Number

Make the phone number field in WooCommerce checkout required for some shipping methods, and optional for others.