WooCommerce is cool e-commerce plugin.
You can get the download limit by retrieving the '_download_limit' meta field.
For example
[code]
$product_id = 123;
$limit = trim( get_post_meta( $product_id, '_download_limit', true ) );
[/code]
This snippet is from function: wc_downloadable_file_permission found in file: plugins/woocommerce/includes/wc-order-functions.php
Referral Note: When you purchase through a referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer