[wp-trac] [WordPress Trac] #54874: [New User Notification] Allow conditional mail supression

WordPress Trac noreply at wordpress.org
Fri Jan 21 14:08:52 UTC 2022

#54874: [New User Notification] Allow conditional mail supression
 Reporter:  janthiel                             |       Owner:  (none)
     Type:  feature request                      |      Status:  new
 Priority:  normal                               |   Milestone:  6.0
Component:  Users                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  dev-note 2nd-opinion                           |

Comment (by janthiel):

 Replying to [comment:2 costdev]:
 > - The admin filter could go on the line just after the `'user' !==
 $notify` condition.
 > - The user filter could go just after `$key` is defined and validated.
 > I believe these locations would allow for the earliest short-circuit.

 Thanks for your feedback on this :-)

 Do I understand correctly that you propose to add additional filters for
 this purpose?
 As I do not see any way to move the existing filters to anywhere earlier
 as they require the message to be composed to continue to work the way
 they do.

Ticket URL: <https://core.trac.wordpress.org/ticket/54874#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list