Example to customize and change discount bar message dynamically
Example code to dynamically customize the discount bar message.
add_filter('advanced_woo_discount_rules_advance_table_based_on_rule', function ($advanced_layout, $rule, $discount_calculator, $product, $product_price, $html_content){
// $advanced_layout will have a multidimensional array you might have to replace the text on the key 'badge_text'
return $advanced_layout;
}, 10, 6);