Function wc_downloadable_file_permission

Grant downloadable product access to the file identified by $download_id

Package: WooCommerce\Functions
Author: WooThemes
Located at includes/wc-order-functions.php

Parameters summary

string $download_id file identifier
integer $product_id product identifier
WC_Order $order the order

Return value summary

integer|boolean insert id or false on failure
WooCommerce API documentation generated by ApiGen 2.8.0