diff --git a/includes/wc-order-functions.php b/includes/wc-order-functions.php index 1d506bc2e26..db220622309 100644 --- a/includes/wc-order-functions.php +++ b/includes/wc-order-functions.php @@ -87,7 +87,7 @@ function woocommerce_downloadable_file_permission( $download_id, $product_id, $o // Downloadable product - give access to the customer $result = $wpdb->insert( $wpdb->prefix . 'woocommerce_downloadable_product_permissions', $data, - $format ) + $format ); do_action( 'woocommerce_grant_product_download_access', $data );