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

WordPress Trac noreply at wordpress.org
Fri Apr 26 10:59:53 UTC 2024


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

Comment (by colorful tones):

 > A potential solution would be adding a new filter like
 rest_user_created_notification that plugins can override. Until then, you
 can use register_rest_field to add a suitable parameter here.

 And

 > But, yeah, a patch to make this happen by default seems like it would be
 nice, especially if there's also a hook to modify it to not send the
 messages.

 These sound like a clear way forward. @philsola do you think you would be
 interested in submitting a patch that adds a new filter to send a
 notification and plugins can override it?

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


More information about the wp-trac mailing list