wc_get_customer_download_permissions()
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() wc get customer download permissions code WC 9.4.2
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 ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment }