automatic_updates_send_debug_email filter-hookWP 3.7.0

Filters whether to send a debugging email for each automatic background update.

Usage

add_filter( 'automatic_updates_send_debug_email', 'wp_kama_automatic_updates_send_debug_email_filter' );

/**
 * Function for `automatic_updates_send_debug_email` filter-hook.
 * 
 * @param bool $development_version By default, emails are sent if the install is a development version. Return false to avoid the email.
 *
 * @return bool
 */
function wp_kama_automatic_updates_send_debug_email_filter( $development_version ){

	// filter...
	return $development_version;
}
$development_version(true|false)
By default, emails are sent if the install is a development version. Return false to avoid the email.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

WP_Automatic_Updater::run()
automatic_updates_send_debug_email
wp-admin/includes/class-wp-automatic-updater.php 601
if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) ) {

Where the hook is used in WordPress

Usage not found.