Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: auto_theme_update_send_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
929                /**
930                 * Filters whether to send an email following an automatic background theme update.
931                 *
932                 * @since 5.5.0
933                 * @since 5.5.1 Added the `$update_results` parameter.
934                 *
935                 * @param bool  $enabled        True if theme update notifications are enabled, false otherwise.
936                 * @param array $update_results The results of theme update tasks.
937                 */
938                $notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] );
939
940                if ( $notifications_enabled ) {
941                     foreach ( $update_results['theme'] as $update_result ) {
942                          if ( true === $update_result->result ) {
943                               $successful_updates['theme'][] = $update_result;
944                          } else {
945                               $failed_updates['theme'][] = $update_result;
946                          }
947                     }