Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: invited_user_email

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
150                 *     @type string $subject The subject of the email.
151                 *     @type string $message The content of the email.
152                 *     @type string $headers Headers.
153                 * }
154                 * @param int    $user_id     The invited user's ID.
155                 * @param array  $role        Array containing role information for the invited user.
156                 * @param string $newuser_key The key of the invitation.
157                 *
158                 */
159                $new_user_email = apply_filters( 'invited_user_email', $new_user_email, $user_id, $role, $newuser_key );
160
161                wp_mail(
162                     $new_user_email['to'],
163                     $new_user_email['subject'],
164                     $new_user_email['message'],
165                     $new_user_email['headers']
166                );
167
168                if ( $switched_locale ) {