Make WordPress Core

Ticket #41757: 41757.diff

File 41757.diff, 691 bytes (added by johnjamesjacoby, 8 years ago)

Adds added_new_user action (no prefix, no suffix, because multisite)

  • src/wp-includes/ms-functions.php

    diff --git src/wp-includes/ms-functions.php src/wp-includes/ms-functions.php
    index 7c28844..1e0965b 100644
     
    21492149
    21502150                if ( ! is_wp_error( $result ) ) {
    21512151                        update_user_meta( $user_id, 'primary_blog', $blog_id );
     2152
     2153                        /**
     2154                         * Fires immediately after a new user is added to a site.
     2155                         *
     2156                         * @since 4.9.0
     2157                         *
     2158                         * @param int    $user_id  User ID.
     2159                         * @param int    $blog_id  Blog ID.
     2160                         * @param string $password User password.
     2161                         * @param array  $meta     Array of meta data from signup.
     2162                         */
     2163                        do_action( 'added_new_user', $user_id, $blog_id, $password, $meta );
    21522164                }
    21532165        }
    21542166}