Changeset 34112
- Timestamp:
- 09/14/2015 03:27:47 AM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-default-filters.php
r32611 r34112 26 26 add_action( 'wpmu_new_user', 'newuser_notify_siteadmin' ); 27 27 add_action( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 ); 28 add_action( 'wpmu_activate_user', 'wpmu_welcome_user_notification', 10, 3 ); 29 add_action( 'after_signup_user', 'wpmu_signup_user_notification', 10, 4 ); 28 30 add_filter( 'sanitize_user', 'strtolower' ); 29 31 … … 32 34 add_action( 'wpmu_new_blog', 'wpmu_log_new_registrations', 10, 2 ); 33 35 add_action( 'wpmu_new_blog', 'newblog_notify_siteadmin', 10, 2 ); 36 add_action( 'wpmu_activate_blog', 'wpmu_welcome_notification', 10, 5 ); 37 add_action( 'after_signup_site', 'wpmu_signup_blog_notification', 10, 7 ); 34 38 35 39 // Register Nonce -
trunk/src/wp-includes/ms-functions.php
r33952 r34112 746 746 ) ); 747 747 748 wpmu_signup_blog_notification($domain, $path, $title, $user, $user_email, $key, $meta); 748 /** 749 * Fires after site signup information has been written to the database. 750 * 751 * @since 4.4.0 752 * 753 * @param string $domain The requested domain. 754 * @param string $path The requested path. 755 * @param string $title The requested site title. 756 * @param string $user The user's requested login name. 757 * @param string $user_email The user's email address. 758 * @param string $key The user's activation key 759 * @param array $meta By default, contains the requested privacy setting and lang_id. 760 */ 761 do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta ); 749 762 } 750 763 … … 783 796 ) ); 784 797 785 wpmu_signup_user_notification($user, $user_email, $key, $meta); 798 /** 799 * Fires after a user's signup information has been written to the database. 800 * 801 * @since 4.4.0 802 * 803 * @param string $user The user's requested login name. 804 * @param string $user_email The user's email address. 805 * @param string $key The user's activation key 806 * @param array $meta Additional signup meta. By default, this is an empty array. 807 */ 808 do_action( 'after_signup_user', $user, $user_email, $key, $meta ); 786 809 } 787 810 … … 1028 1051 return new WP_Error( 'user_already_exists', __( 'That username is already activated.' ), $signup); 1029 1052 1030 wpmu_welcome_user_notification( $user_id, $password, $meta );1031 1053 /** 1032 1054 * Fires immediately after a new user is activated. … … 1056 1078 1057 1079 $wpdb->update( $wpdb->signups, array('active' => 1, 'activated' => $now), array('activation_key' => $key) ); 1058 wpmu_welcome_notification($blog_id, $user_id, $password, $signup->title, $meta);1059 1080 /** 1060 1081 * Fires immediately after a site is activated.
Note: See TracChangeset
for help on using the changeset viewer.