Hello,
Thanks for getting in touch with us.
To disable “Downloadable” products go to Capabilities menu from your WCFM Dashboard. From there uncheck “Downloadable” under Types. Refer to this- https://imgur.com/hn4eenB
Now to set Virtual as default use the following snippt-
function wcfm_product_manage_fields_general_custom_virtual( $general_fields, $product_id ) {
if( isset( $general_fields['is_virtual'] ) && ! $product_id ) {
$general_fields['is_virtual']['dfvalue'] = 'enable';
}
return $general_fields;
}
add_filter( 'wcfm_product_manage_fields_general', 'wcfm_product_manage_fields_general_custom_virtual', 10, 2 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how it goes.
Thanks!