WordPress.org

Make WordPress Core

Changeset 33732


Ignore:
Timestamp:
08/25/2015 05:47:26 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Multisite: Add 'invite_user' action that fires immediately after a user is invited to join a site, but before the notification is sent.

props ebinnion, MikeHansenMe, DrewAPicture.
fixes #33008.

File:
1 edited

Legend:

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

    r33450 r33732  
    8080            $roles = get_editable_roles();
    8181            $role = $roles[ $_REQUEST['role'] ];
     82
     83            /**
     84             * Fires immediately after a user is invited to join a site, but before the notification is sent.
     85             *
     86             * @since 4.4.0
     87             *
     88             * @param int    $user_id     The invited user's ID.
     89             * @param array  $role        The role of invited user.
     90             * @param string $newuser_key The key of the invitation.
     91             */
     92            do_action( 'invite_user', $user_id, $role, $newuser_key );
     93
    8294            /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */
    8395            $message = __( 'Hi,
Note: See TracChangeset for help on using the changeset viewer.