[wp-trac] [WordPress Trac] #40477: REST API: Does NOT Trigger New User Notifications!

WordPress Trac noreply at wordpress.org
Fri Apr 21 03:31:21 UTC 2017


#40477: REST API: Does NOT Trigger New User Notifications!
-------------------------------------------------+-------------------------
 Reporter:  mrahmadawais                         |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Users                                |  Review
 Severity:  normal                               |     Version:  4.7
 Keywords:  dev-feedback has-patch needs-        |  Resolution:
  testing needs-unit-tests                       |     Focuses:  rest-api
-------------------------------------------------+-------------------------

Comment (by mrahmadawais):

 I have updated the patch to use

 {{{#!php
 /*
  * Trigger default welcome email notifications.
  *
  * This action hook is documented in wp-admin/includes/user.php
  *
  * Add second param $notify to override the behavior.
  */
 do_action( 'edit_user_created_user', $user_id );
 }}}

 This will favor the default notification behavior as well as provide the
 ability to opt-out by defining a custom value for `$notify` as the second
 argument.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40477#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list