Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: invite_user

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
79                /**
80                 * Fires immediately after a user is invited to join a site, but before the notification is sent.
81                 *
82                 * @since 4.4.0
83                 *
84                 * @param int    $user_id     The invited user's ID.
85                 * @param array  $role        The role of invited user.
86                 * @param string $newuser_key The key of the invitation.
87                 */
88                do_action( 'invite_user', $user_id, $role, $newuser_key );
90                /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */
91                $message = __( 'Hi,
93 You\'ve been invited to join \'%1$s\' at
94 %2$s with the role of %3$s.
96 Please click the following link to confirm the invite:
97 %4$s' );