- Plugin Name: Variation Description Plugin
- Description: Replaces main product description with variation description if available.
This plugin modifies the product description display behavior in WooCommerce for variable products. By default, WooCommerce displays the main product description on the product page. However, if a variable product has child variations with different descriptions, this plugin replaces the main product description with the description of the selected price variation.
- Function Name:
replace_product_description_with_variation
- Function Description: Replaces the product description with the variation description if available for variable products.
- Function Arguments: