[wp-trac] [WordPress Trac] #54874: [New User Notification] Allow conditional mail supression
WordPress Trac
noreply at wordpress.org
Mon Jan 24 08:24:07 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):
@costdev I added two new filters to do the job and reverted the previous
approach. They will use the existing short circuit points to follow the
existing code patterns. Feels better and easier to follow than to
introduce new checks at other points within the flow.
The two new filters are named a bit more verbose to allow an easier
distinction of them:
`send_new_user_notification_email_to_admin` and
`send_new_user_notification_email_to_user`.
Is that what you had in mind?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54874#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list