WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
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 ) { |