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