WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/14/2015 03:27:47 AM (5 years ago)
Author:
boonebgorges
Message:

Send multisite site/user signup emails via hooked functions.

Site and user signup notifications are moved to the new actions
'after_signup_site' and 'after_signup_user'. Site and user activation
notifications are moved to the existing actions 'wpmu_activate_blog' and
'wpmu_activate_user'.

Props dshanske, thomaswm, jeremyfelt.
See #33587..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-default-filters.php

    r32611 r34112  
    2626add_action( 'wpmu_new_user', 'newuser_notify_siteadmin' );
    2727add_action( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 );
     28add_action( 'wpmu_activate_user', 'wpmu_welcome_user_notification', 10, 3 );
     29add_action( 'after_signup_user', 'wpmu_signup_user_notification', 10, 4 );
    2830add_filter( 'sanitize_user', 'strtolower' );
    2931
     
    3234add_action( 'wpmu_new_blog', 'wpmu_log_new_registrations', 10, 2 );
    3335add_action( 'wpmu_new_blog', 'newblog_notify_siteadmin', 10, 2 );
     36add_action( 'wpmu_activate_blog', 'wpmu_welcome_notification', 10, 5 );
     37add_action( 'after_signup_site', 'wpmu_signup_blog_notification', 10, 7 );
    3438
    3539// Register Nonce
Note: See TracChangeset for help on using the changeset viewer.