Skip to:
Content

BuddyPress.org

Ticket #8081: 8081.patch

File 8081.patch, 1.0 KB (added by imath, 6 years ago)
  • src/bp-members/bp-members-functions.php

    diff --git src/bp-members/bp-members-functions.php src/bp-members/bp-members-functions.php
    index 58fd1777e..fabd370b9 100644
    function bp_core_activate_signup( $key ) { 
    18971897                 * Maybe notify the site admin of a new user registration.
    18981898                 *
    18991899                 * @since 1.2.2
     1900                 * @since 5.0.0 Use this filter to define who should be notified.
    19001901                 *
    1901                  * @param bool $notification Whether to send the notification or not.
     1902                 * @param mixed $value Whether to send the notification to `both` the admin and the user,
     1903                 *                     only the `admin`, only the `user` or no one at all (false).
    19021904                 */
    1903                 if ( apply_filters( 'bp_core_send_user_registration_admin_notification', true ) ) {
    1904                         wp_new_user_notification( $user_id );
    1905                 }
     1905                $notify = apply_filters( 'bp_core_send_user_registration_admin_notification', 'both' );
     1906                wp_new_user_notification( $user_id, null, $notify );
    19061907
    19071908                if ( isset( $user_already_created ) ) {
    19081909