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