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.


Top ↑

Return Return

(array)


Top ↑

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.