Priorities of roles, how to get?
-
I defined a list of 6 roles and gave each role a priority: 15, 30, 50, 150, 500 and 1000.
Is there a way to read the role priority at the PHP code level?function getUserRolePriority()
<span style=”text-decoration: underline;”>How to implement this?</span>
The other thing is I would like to use functions in text fields that restrict access, such as this one:
[um_show_content role='um_some_role']
But I would like not to specify in the condition the ID of the role, but its <span style=”text-decoration: underline;”>priority, how to do it</span>?
Is there something similar?[um_show_content priority>=150]
?<span style=”text-decoration: underline;”>Are there such functions?</span>
- The topic ‘Priorities of roles, how to get?’ is closed to new replies.