WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#20162 closed enhancement (fixed)

Pass additional parameters to newuser_notify_siteadmin filter

Reported by: boonebgorges Owned by: nacin
Milestone: 3.4 Priority: normal
Severity: trivial Version:
Component: Users Keywords: has-patch
Focuses: Cc:

Description

The newuser_notify_siteadmin filter allows modification of the email that gets sent at new user activation on Multisite. However, the filter is not very useful, as it does not pass along any information about the user being activated. The attached patch passes the $user_id as well as the $user object.

Attachments (1)

20162.patch (805 bytes) - added by boonebgorges 2 years ago.

Download all attachments as: .zip

Change History (4)

boonebgorges2 years ago

comment:1 nacin2 years ago

Might as well just pass $user. Looks good.

comment:2 nacin2 years ago

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

In [20101]:

Pass WP_User object to the newuser_notify_siteadmin filter. props boonebgorges. fixes #20162.

comment:3 nacin2 years ago

  • Milestone changed from Awaiting Review to 3.4
Note: See TracTickets for help on using tickets.