Main Menu
Sub Menu

wpdm_allowed_roles

Description:

Returns user's roles who have access to a the specified package.

Usage:

<?php wpdm_allowed_roles($id); ?>

Return Value:

Returns an array containing user's roles which have access to the specified package.

Example:

To find the user's roles which have access to the package with ID 1

<?php $user_roles = wpdm_allowed_roles($id); ?>