We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Member model hooks not firing when adding additional roles to member

Development and Programming

octranspo-realdecoy's avatar
octranspo-realdecoy
1 posts
about 4 weeks ago
octranspo-realdecoy's avatar octranspo-realdecoy

If a user’s primary role is changed, the after_member_save hook fires.

However, if additional roles are added under the Roles section, none of the member save / update hooks seem to fire. Are there any other hooks that can be used to track when user roles are assigned this way?

       
Hop Studios's avatar
Hop Studios
481 posts
about 4 weeks ago
Hop Studios's avatar Hop Studios

There’s no other hook that would fire for that specifically. after_member_save should be the one you want to be using.

I think there are missing hooks relating to roles / member groups / role groups, that is the cause of this bug. You may want to file this.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.