I’m trying to figure out how I can get the capabilities from the “Other roles” within the ‘profile_update’ action. I tried with user_can($user->ID, ‘custom_capability’), but it doesn’t receive the capabilities from the “Other roles” in this way. When I add to capability to the primary role, it does work.
Could you tell me how I can detect all the capabilities together from the primary and other roles like this?
- The topic ‘Get capabilities from "Other role" on saving profile’ is closed to new replies.