• Resolved calebqowens

    (@calebqowens)


    I am creating and updating users via the WP Rest API for my single-site. Creating users triggers the “New User Registration for User” notification correctly. However, when we use the WP Rest API to update an existing user (to change email, or other meta fields) it sends out the “New User Registration for User” notification again. Is there anything in the plugin that might trigger the new user registration email when a users info is updated via the API?

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

    (@voltronik)

    Hi @calebqowens,
    Thanks for your message.

    So I can test, can you please post the code here that you’re using to update a user via the WP REST API?

    Thread Starter calebqowens

    (@calebqowens)

    @voltronik Thanks for your response. After further testing, I’ve found that even after disabling BNFW, WordPress will still send out the new user email even when just updating a user via the API. So I believe it’s either an issue with WP Core or an issue with some other plugin. I’ll test again on a vanilla WP install.

    Doesn’t seem to be an issue with BNFW, but for your reference I am sending a curl request to these endpoints on my site
    Create User (sends new user email): POST /wp/v2/users/
    Update User (incorrectly sends new user email): POST /wp/v2/users/<id>

    Plugin Author bnfw

    (@voltronik)

    Hi @calebqowens,
    Thanks for letting me know. Good to know it’s not a BNFW issue but a pain that it’s a bug or something within WordPress.
    If you haven’t already, it might be worth raising it as a bug with WP directly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘New User Registration for User – via WP Rest API’ is closed to new replies.