Skip to:
Content

BuddyPress.org

Changeset 11759


Ignore:
Timestamp:
12/06/2017 03:27:43 PM (7 years ago)
Author:
djpaul
Message:

Members: add filter to control notifying the site admin of a new user registration.

Fixes #7597

Props antonioeatgoat for the initial patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-functions.php

    r11747 r11759  
    20482048        );
    20492049
    2050         // Notify the site admin of a new user registration.
    2051         wp_new_user_notification( $user_id );
     2050        /**
     2051         * Maybe notify the site admin of a new user registration.
     2052         *
     2053         * @since 1.2.2
     2054         *
     2055         * @param bool $notification Whether to send the notification or not.
     2056         */
     2057        if ( apply_filters( 'bp_core_send_user_registration_admin_notification', true ) ) {
     2058            wp_new_user_notification( $user_id );
     2059        }
    20522060
    20532061        if ( isset( $user_already_created ) ) {
Note: See TracChangeset for help on using the changeset viewer.