Make WordPress Core

Ticket #33008: 33008.1.diff

File 33008.1.diff, 881 bytes (added by ebinnion, 10 years ago)

Adds invite_user action

  • src/wp-admin/user-new.php

     
    7979
    8080                        $roles = get_editable_roles();
    8181                        $role = $roles[ $_REQUEST['role'] ];
     82
     83                        /**
     84                         * Performs other actions when a user is invited to join a site.
     85                         *
     86                         * @since  Unknown
     87                         *
     88                         * @param  int      $user_id             The invited user's ID.
     89                         * @param  int                           The current user's ID.
     90                         * @param  array    $role                The role of invited user.
     91                         * @param  string   $newuser_key         The key of the invitation.
     92                         */
     93                        do_action( 'invite_user', $user_id, get_current_user_id(), $role, $newuser_key );
     94
    8295                        /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */
    8396                        $message = __( 'Hi,