apply_filters( ‘auto_theme_update_send_email’, bool $enabled, array $update_results )

In this article

Filters whether to send an email following an automatic background theme update.

Parameters

$enabledbool
True if theme update notifications are enabled, false otherwise.
$update_resultsarray
The results of theme update tasks.

Source

$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] );

Changelog

VersionDescription
5.5.1Added the $update_results parameter.
5.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.