Skip to content

Setting role bug when plugin Members multiple-roles activated #7

@laurent-angeli

Description

@laurent-angeli

Hi,
Thanks for your addon !
Plugin Members allow to accept multiple roles for users.
So users can have multiple roles independant of PMPRO.

When user level change is detected by PMPRO_role, role is changed with set_role() WP function which erase all others roles user can have ( in function user_change_level() ).
I think a better behavior should be to :

  • delete all roles related to old levels user could have
  • add new role using add_role() WP function without touching to all other roles unrelated with PMPRO.

What do you think about this ?
Can i expect a fix in your addon ?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions