Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#14743 closed enhancement (fixed)

New User/Blog activation email messages are difficult to customize

Reported by: mdawaffe Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version: 3.0.1
Component: Multisite Keywords: has-patch
Focuses: Cc:


The wpmu_signup_blog_notification_email and wpmu_signup_user_notification_email hooks allow plugins to customize the activation email messages.

No information about the actual signup is passed to the filter, however.

Attached adds extra parameters to those hooks and their related subject hooks.

Attachments (1)

14743.diff (3.1 KB) - added by mdawaffe 11 years ago.

Download all attachments as: .zip

Change History (4)

11 years ago

#1 @nacin
11 years ago

  • Milestone changed from Awaiting Review to 3.1

#2 @ryan
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [15552]) Pass more info to notification filters. Props mdawaffe. fixes #14743

#3 @sboisvert
11 years ago

  • Cc sboisvert added

I sadly lack the mental capacity to create diff files. (The Help Guide seems more geared on how to make trac work than how to submit to trac).

I really appreciate the additions made here. One thing I would like added is a filter on the headers. There may be a better way to achieve changing the email headers and if so I am more than willing to hear it. But I feel a filter on the headers could be useful.

I would suggest adding a change of line 656 to:

$message_headers = apply_filters( 'wpmu_signup_user_notification_headers',"From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n",$from_name,$admin_email, $domain, $path,$meta);

Note: See TracTickets for help on using tickets.