WordPress.org

Make WordPress Core

Ticket #33631: 33631.2.diff

File 33631.2.diff, 787 bytes (added by jeremyfelt, 4 years ago)
  • src/wp-admin/network/site-new.php

     
    9191        $user_id = email_exists($email);
    9292        if ( !$user_id ) { // Create a new user with a random password
    9393                /**
    94                  * Fires when a new user will be created via the network site-new.php page.
     94                 * Fires before a new user is created via the network site-new.php page.
    9595                 *
    9696                 * @since 4.5.0
    9797                 *
    9898                 * @param string $email Email of the non-existent user.
    9999                 */
    100                 do_action( 'network_site_new_created_user_pending', $email );
     100                do_action( 'pre_network_site_new_created_user', $email );
    101101
    102102                $user_id = username_exists( $domain );
    103103                if ( $user_id ) {