wc_get_customer_download_permissions( int $customer_id )
Get customer download permissions from the database.
Description Description
Parameters Parameters
- $customer_id
-
(Required) Customer/User ID.
Return Return
(array)
Source Source
File: includes/wc-user-functions.php
function wc_get_customer_download_permissions( $customer_id ) { $data_store = WC_Data_Store::load( 'customer-download' ); return apply_filters( 'woocommerce_permission_list', $data_store->get_downloads_for_customer( $customer_id ), $customer_id ); }