Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: recovery_mode_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
218            *
219            *     @type string|array $to          Array or comma-separated list of email addresses to send message.
220            *     @type string       $subject     Email subject
221            *     @type string       $message     Message contents
222            *     @type string|array $headers     Optional. Additional headers.
223            *     @type string|array $attachments Optional. Files to attach.
224            * }
225            * @param string $url   URL to enter recovery mode.
226            */
227           $email = apply_filters( 'recovery_mode_email', $email, $url );
228
229           $sent = wp_mail(
230                $email['to'],
231                wp_specialchars_decode( sprintf( $email['subject'], $blogname ) ),
232                $email['message'],
233                $email['headers'],
234                $email['attachments']
235           );
236