wc_get_customer_download_permissions()WC 1.0

Get customer download permissions from the database.

Хуки из функции

Возвращает

Массив.

Использование

wc_get_customer_download_permissions( $customer_id );
$customer_id(int) (обязательный)
Customer/User ID.

Код wc_get_customer_download_permissions() WC 8.7.0

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