WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 2 weeks ago

#42134 reviewing enhancement

Add filter to emails 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

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).

The contents of the email cannot be filtered. The recipient, subject, message, and headers should be passed through a filter in the same format as the password_change_email filter. (Ref).

Attachments (2)

42134.patch (6.3 KB) - added by Dhruvin 2 months ago.
Added a filter for filtering the contents of the email sent when a new site is created.
42134.2.patch (3.4 KB) - added by Dharm1025 2 months ago.
better patch with placeholders and some other improvements

Download all attachments as: .zip

Change History (7)

@Dhruvin
2 months ago

Added a filter for filtering the contents of the email sent when a new site is created.

#2 @Dhruvin
2 months ago

  • Keywords has-patch added; needs-patch removed

#3 @johnbillion
2 months ago

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

#4 @johnbillion
2 months ago

  • Milestone changed from Awaiting Review to 5.0

@Dharm1025
2 months ago

better patch with placeholders and some other improvements

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.