How would I go about changing this PHP code to to change Choose an option based on the id of the select element in the Woocommerce plugin for WordPress? I believe I have found t
Updated code, made it for anyone still interested
add_filter( 'woocommerce_dropdown_variation_attribute_options_args',
fix_option', 10 );
function fix_option( $args ) {
$attr = get_taxonomy( $args['attribute'] );
$label = $attr->labels->name;
$fix = str_replace('Product', '', $label);
$fix = strtolower($fix); /
$args['show_option_none'] = apply_filters( 'the_title', 'Select a '.$fix );
}