Unable to Retrieve Access Level Name by Level ID Using rua_get_level()
-
I’m experiencing an issue with the Restrict User Access plugin when trying to fetch an access level’s name by its ID using the function
rua_get_level()
. Although I can retrieve the access level object, thename
property either returns empty or doesn’t exist for valid access level IDs.I am using a shortcode to pass the
level_id
and call the function to display users of that access level. The code snippet is designed to display a button with the access level name, which toggles a table of users belonging to that access level. However, thename
property of the access level isn’t returned properly.Could you please confirm if this is a known issue or if there is another method for retrieving an access level’s name by its ID?
Thanks!
- You must be logged in to reply to this topic.