Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AnanthFlycart/d070b684a77f7bf886b8416fbb57be06 to your computer and use it in GitHub Desktop.

Select an option

Save AnanthFlycart/d070b684a77f7bf886b8416fbb57be06 to your computer and use it in GitHub Desktop.
CUW: Increase campaign offers max limit
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