Last active
March 8, 2024 11:07
-
-
Save AnanthFlycart/d070b684a77f7bf886b8416fbb57be06 to your computer and use it in GitHub Desktop.
CUW: Increase campaign offers max limit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('cuw_offers_per_campaign', function ($limit, $campaign_type) { | |
| if (in_array($campaign_type, ['checkout_upsells', 'cart_upsells'])) { | |
| $limit = 10; | |
| } | |
| return $limit; | |
| }, 100, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment