Woocommerce Pflichtfeld Telefonnummer

Pflichtfeld Telefonnummer in Woocommerce deaktivieren.

add_filter( 'woocommerce_billing_fields', 'kd_no_required_phone', 10, 1 );

function kd_no_required_phone( $address_fields ) {
	$address_fields['billing_phone']['required'] = false;
	return $address_fields;
}