wc_get_customer_download_permissions()WC 1.0

Get customer download permissions from the database.

Hooks from the function

Return

Array.

Usage

wc_get_customer_download_permissions( $customer_id );
$customer_id(int) (required)
Customer/User ID.

wc_get_customer_download_permissions() code WC 8.6.1

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 );
}