WordPress.org

Make WordPress Core

Changeset 35786


Ignore:
Timestamp:
12/06/2015 08:09:50 PM (4 years ago)
Author:
rachelbaker
Message:

Multisite: Add hook before a new user is created during the creation of a new site.

New network_site_new_created_user_pending action fires before a new user will be created via the network site-new.php page.

Props mackensen
Fixes #33631

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/site-new.php

    r34996 r35786  
    9191    $user_id = email_exists($email);
    9292    if ( !$user_id ) { // Create a new user with a random password
     93        /**
     94         * Fires when a new user will be created via the network site-new.php page.
     95         *
     96         * @since 4.5.0
     97         *
     98         * @param string $email Email of the non-existent user.
     99         */
     100        do_action( 'network_site_new_created_user_pending', $email );
     101
    93102        $user_id = username_exists( $domain );
    94103        if ( $user_id ) {
Note: See TracChangeset for help on using the changeset viewer.