<select class="license_type" name="license_type" id="license_type">
<option value="license" data-set="500">Single Site License</option>
<option value="license" data-set="700">5 Site License</option>
<option value="license" data-set="1400">Developers License</option>
</select>
In the woocommerce variation product – I want to add some data-set tags in option tag.
data-set="<? php some code here to pull the price of the variation ?>"
Is that possible through hook/filter.
2
Answers
Yes, its possible. You can use this
apply_filters( 'woocommerce_dropdown_variation_attribute_options_html', $html, $args )
filter to achieve your above tasks.
This is the code for what you are looking..