WC variations remove select option of selectboxes

Removing the varioations first option '- select -' from all the selectbox in wordpress wocommerece there is filter called 'woocommerce_dropdown_variation_attribute_options_args' applying this filter we can change or we can remove the first default option in the all variations fields. Apply this filter all the script need in the function mentioned below. Use this function and filter to in the functions.php of your child-theme of regular theme to get the results.


<?php
// REMOVE VARIATION OPTION '- SELECT -' FROM ALL SELECT BOX
add_filter( 'woocommerce_dropdown_variation_attribute_options_args', 'variations_remove_select_text');

// CUSTOM FUNCTION TO REMOVE SELECT OPTION OR VARIATION FILEDS
function variations_remove_select_text( $args ){
    $args['show_option_none'] = '';
    return $args;

}
?>

Students Tech Life