Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notify a bbPress User when their Role has Been Changed


  • newsha
    Participant

    @newsha

    I want the users to get email alerts every time their forum role changes to a specific role.

    Namely, I have to notify them only if their role has changed from Spectator to Participant.

    I found a way to do this with standard WordPress roles, but it doesn’t work with bbPress roles.

    http://clicknathan.com/web-design/notify-a-wordpress-user-when-their-role-has-been-changed-to-a-specific-role/

    I tried changing if ($new_role == 'contributor') to if ($new_role == 'participant') and even to this if ($new_role == 'bbp_participant') – nothing worked.

    Perhaps someone knows the solution?

    WordPress version: 3.8.2
    bbPress version: 2.5.3

You must be logged in to reply to this topic.