Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: auto_plugin_theme_update_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
1235            *                           can be returned, as handled by wp_mail().
1236            *     @type string $subject The email's subject.
1237            *     @type string $body    The email message body.
1238            *     @type string $headers Any email headers, defaults to no headers.
1239            * }
1240            * @param string $type               The type of email being sent. Can be one of 'success', 'fail', 'mixed'.
1241            * @param array  $successful_updates A list of updates that succeeded.
1242            * @param array  $failed_updates     A list of updates that failed.
1243            */
1244           $email = apply_filters( 'auto_plugin_theme_update_email', $email, $type, $successful_updates, $failed_updates );
1245
1246           $result = wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
1247
1248           if ( $result ) {
1249                update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
1250           }
1251      }
1252
1253      /**