Add filter to control notice
-
Hi. Thanks for this plugin.
I think a feature that would provide even more flexibility would be a filter to modify the notice programatically. For example, apply different conditions based on coupon type, etc.
My idea is that, in public/message.php, lines 5, 12 and 20, it should be:apply_filters(‘acblw_notice_text’, pisol_acblw_get_option(‘acblw_coupon_added_to_session’, ‘…’), $coupon_code);
Filters name could be ‘acblw_notice_text’, ‘acblw_success_text’ respectively.
Where the first parameter of the filter is the text loaded via the option and the second one the coupon code.
Then I can add a filter on my theme to show different text based on the coupon and even other conditions.What do you think? Is this possible?
Thanks in advance
- The topic ‘Add filter to control notice’ is closed to new replies.