automatic_updates_send_debug_email
Filter HookDescription
Filters whether to send a debugging email for each automatic background update.Hook Information
File Location |
wp-admin/includes/class-wp-automatic-updater.php
View on GitHub
|
Hook Type | Filter |
Line Number | 766 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$development_version
|
By default, emails are sent if the install is a development version. Return false to avoid the email. |
Usage Examples
Basic Usage
<?php
// Hook into automatic_updates_send_debug_email
add_filter('automatic_updates_send_debug_email', 'my_custom_filter', 10, 1);
function my_custom_filter($development_version) {
// Your custom filtering logic here
return $development_version;
}
Source Code Context
wp-admin/includes/class-wp-automatic-updater.php:766
- How this hook is used in WordPress core
<?php
761 *
762 * @param bool $development_version By default, emails are sent if the
763 * install is a development version.
764 * Return false to avoid the email.
765 */
766 if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) ) {
767 $this->send_debug_email();
768 }
769
770 if ( ! empty( $this->update_results['core'] ) ) {
771 $this->after_core_update( $this->update_results['core'][0] );
PHP Documentation
<?php
/**
* Filters whether to send a debugging email for each automatic background update.
*
* @since 3.7.0
*
* @param bool $development_version By default, emails are sent if the
* install is a development version.
* Return false to avoid the email.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/class-wp-automatic-updater.php
Related Hooks
Related hooks will be displayed here in future updates.