• Resolved nicopotgieter

    (@nicopotgieter)


    WP= latest version as well as BNFW/
    Installed BNFW and all seems to be working fine.
    I use the WP Rest API to create users and change their roles.
    When doing this BNFW sends the emails as expected and does the job for sending emails.
    The problem is with the short codes. The online documentation (https://betternotificationsforwp.com/documentation/notifications/shortcodes/?notification=user-role) at the bottom shows the short codes that can be used
    New User Role: [user_role_new]
    Old User Role: [user_role_old]
    However when including in the email being sent only the [user_role_old] is populated with the new user role being blank.
    Any suggestions???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @nicopotgieter,
    Thanks for your message.

    I haven’t tried this notification with the WP Rest API (or WP CLI) lately however, I imagine it has something to do with when the new user role is being saved and that BNFW isn’t catching it after the REST API request has completed. As such, the new user role data isn’t available yet.

    I’ll see what I can do to replicate it and see if there’s anything I can do to fix if there’s a bug.

    Thread Starter nicopotgieter

    (@nicopotgieter)

    Hi @voltronik
    Thank you for the quick reply.

    Excellent Service

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email when changing role for user’ is closed to new replies.