WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 weeks ago

#42135 reviewing enhancement

Add filter to disable email sent by wp-admin/network/site-new.php

Reported by: johnbillion Owned by: johnbillion
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: good-first-bug has-patch
Focuses: multisite Cc:

Description

Related: #42134

wp-admin/network/site-new.php contains a call to wp_mail() which sends an email when a new site is created from Network Admin -> Sites -> Add New on Multisite. (Ref).

It's not possible to disable the email via a filter. One should be implemented similarly to the send_password_change_email filter. (Ref).

Attachments (2)

42135.patch (1.7 KB) - added by kartikparmar 2 months ago.
Added a Filter to disable sending emails on creating a new site on WordPress Multisite.
42135v1.patch (1.9 KB) - added by kartikparmar 2 months ago.
Comment added for the filter.

Download all attachments as: .zip

Change History (6)

@kartikparmar
2 months ago

Added a Filter to disable sending emails on creating a new site on WordPress Multisite.

#1 @kartikparmar
2 months ago

  • Keywords has-patch added; needs-patch removed

@kartikparmar
2 months ago

Comment added for the filter.

#2 @johnbillion
2 months ago

  • Owner set to johnbillion
  • Status changed from new to reviewing

#3 @johnbillion
2 months ago

  • Milestone changed from Future Release to 5.0

This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.


2 weeks ago

Note: See TracTickets for help on using tickets.