woocommerce_downloadable_file_permission

The WooCommerce woocommerce downloadable file permission function.

Description

woocommerce_downloadable_file_permission( $download_id, $product_id, $order ); 

Parameters (3)

0. $download_id
The download id.
1. $product_id
The product id.
2. $order
The order.

Usage

  1. if ( !function_exists( 'woocommerce_downloadable_file_permission' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The download id. 
  5. $download_id = null; 
  6.  
  7. // The product id. 
  8. $product_id = null; 
  9.  
  10. // The order. 
  11. $order = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = woocommerce_downloadable_file_permission($download_id, $product_id, $order); 
  15.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-deprecated-functions.php  
  1. function woocommerce_downloadable_file_permission( $download_id, $product_id, $order ) { 
  2. return wc_downloadable_file_permission( $download_id, $product_id, $order );