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 ) { |
1897 | 1897 | * Maybe notify the site admin of a new user registration. |
1898 | 1898 | * |
1899 | 1899 | * @since 1.2.2 |
| 1900 | * @since 5.0.0 Use this filter to define who should be notified. |
1900 | 1901 | * |
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). |
1902 | 1904 | */ |
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 ); |
1906 | 1907 | |
1907 | 1908 | if ( isset( $user_already_created ) ) { |
1908 | 1909 | |