Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Easy Digital Downloads - Make sure only 1 download can exist in the cart
<?php
add_filter( 'edd_pre_add_to_cart_contents', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment