woocommerce default check "visible on product page" and "used for variations"
// add to functions.php
// Set "Visible on the project product" checkbox to on by default
add_filter( 'default_attribute_visibility', '__return_true' );
// Set "Used for variations" checkbox to on by default
add_filter( 'default_attribute_variation', '__return_true' );