fetchPermissionDetails (function)

Return to Knowledgebase

Purpose

Returns the id and permission name of a permission level

Location

users/helpers/permissions.php

Parameters

# Parameter Data Type Required Description
1 $id Yes undocumented

Example

fetchPermissionDetails(2)

Further Documentation:

This is an internal function not generally used by developers. This returns an object that contains the id and permission name of permission level 2. In this case, that's 2 and admin.