wphooks.info - invite_user

invite_user

(trunk - 5.0-alpha-42490)

The hook occurs in the following file:

wp-admin/user-new.php:
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
			/**
			 * Fires immediately after a user is invited to join a site, but before the notification is sent.
			 *
			 * @since 4.4.0
			 *
			 * @param int    $user_id     The invited user's ID.
			 * @param array  $role        The role of invited user.
			 * @param string $newuser_key The key of the invitation.
			 */
			do_action( 'invite_user', $user_id, $role, $newuser_key );

			$switched_locale = switch_to_locale( get_user_locale( $user_details ) );

			/* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */
			$message = __(
				'Hi,

You\'ve been invited to join \'%1$s\' at
%2$s with the role of %3$s.